Spring Boot Rest API with Kotlin - Pagination, Search & Sorting using MongoDB

preview_player
Показать описание

Learn how to filter, paginate and sort using Kotlin with Spring Boot & MongoDB. We will compare Frontend and Backend API Filtering with two different API Endpoints. One will be a simple endpoint where you return all the data, the other will be an endpoint where we will apply custom Pagination, Search & Sorting.

This video can be combined with other videos:

Timestamps:
00:00 Preview
00:39 Setup
02:04 CORS
04:34 Connect with MongoDB
07:22 Frontend Endpoint
11:54 Seeding the Database
17:42 Backend Endpoint
18:20 Searching Products
23:13 Sorting Products
26:37 Pagination

#kotlin #springBoot #java #mongodb
Рекомендации по теме
Комментарии
Автор

Your video title is "...using mongodb", but in minutes 23:50, I saw you use the JpaRepository not MongoRepository, can you explain why you do that?

croozio
Автор

For the other people where the ID of Product is empty in the database: declare the property as below. The lateinit fixes the issue.
@Id
lateinit var id: String

damiansauren
visit shbcf.ru