- Basic limits if the user not provided the right arguments or misspelled it
/users
route for serving users- The model has a
previous
, anext
and also acurrent
page of the API - The
next
and theprev
fields are only visible when those pages are exists
Note: The index (/ route) is saying to navigate to the /users route :)
Basic GET (it will return the 1st page and set the limit to 4)
/users
Where you request the 2nd page and set the serve limit to 2 as well.
/users?page=2&limit=2
This project is was for practice and its a very good implementation so feel free to use it, if you want you can tag me or link it back to me.