|
|
|
|
5
|
|
5
|
|
6
|
-
|
6
|
-
|
7
|
### Get Data From Page
|
7
|
### Get Data From Page
|
8
|
-
|
|
|
9
|
* For example, a client wanting a blog post in page 3 of a hypothetical blog service can use a `GET` method resembling the following:
|
8
|
* For example, a client wanting a blog post in page 3 of a hypothetical blog service can use a `GET` method resembling the following:
|
10
|
`http://blog.example.com/posts?page=3`
|
9
|
`http://blog.example.com/posts?page=3`
|
11
|
|
10
|
|
|
|
|
|
62
|
* Make use of Spring's built-in page number pagination support by researching `org.springframework.data.repository.PagingAndSortingRepository`.
|
61
|
* Make use of Spring's built-in page number pagination support by researching `org.springframework.data.repository.PagingAndSortingRepository`.
|
63
|
* Modify respective `Controller` methods to handle `Pageable` arguments.
|
62
|
* Modify respective `Controller` methods to handle `Pageable` arguments.
|
64
|
* Send a `GET` request to `http://localhost:8080/polls?page=0&size=2` via Postman.
|
63
|
* Send a `GET` request to `http://localhost:8080/polls?page=0&size=2` via Postman.
|
65
|
- * Ensure the response is a `JSON` object with pagination-specific information.
|
|
|
|
|
64
|
+* Ensure the response is a `JSON` object with pagination-specific information.
|