You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 1, 2020. It is now read-only.
I started playing around with the sample application and looks like the pagination does not seem to work correctly. Hope that you could look into this.
Steps to reproduce:
Run the sample application
use Postman to send (25) POST request http://localhost:8080/api/user
use Postman to send GET request http://localhost:8080/api/user?page[number]=1&page[size]=3&page[totals]
Then the sample application returns HTTP Status 400 – Bad Request
Also, could you please advise the following case given that created already 25 users:
I try making GET request http://localhost:8080/api/userwithout pagination params, then the sample application returns data of 20 users only which is correct as per the default configuration. The question now is how to get the rest of 5 users created?
Appreciate your time.
Thai
The text was updated successfully, but these errors were encountered:
Spring Boot can't handle the square brackets--they're considered illegal characters in a URL--so instead of sending parameters like page[size]=3, you need to encode them like page%5Bsize%5D=3.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi @olOwOlo,
Thanks for great job.
I started playing around with the sample application and looks like the pagination does not seem to work correctly. Hope that you could look into this.
Steps to reproduce:
http://localhost:8080/api/user
http://localhost:8080/api/user?page[number]=1&page[size]=3&page[totals]
Then the sample application returns HTTP Status 400 – Bad Request
Also, could you please advise the following case given that created already 25 users:
I try making GET request
http://localhost:8080/api/user
without pagination params, then the sample application returns data of 20 users only which is correct as per the default configuration. The question now is how to get the rest of 5 users created?Appreciate your time.
Thai
The text was updated successfully, but these errors were encountered: