I just started learning Rest architecture, and I have a question.
I have 10000 records (universities) , and I decide to render just one page with 100 records per request with links for paging.
If a client do GET http://blablabla/api/universities?take=500, what should I put on paging links (just two page?) ?
I have 10000 records (universities) , and I decide to render just one page with 100 records per request with links for paging.
You want the Feed Paging and Archiving specification. If the pages are indefinitely stable, then you should consider the guidance on archived feeds, in addition to reviewing paged feeds.
Note that in a RESTful design, there's no particular urgency to give the client what they asked for. It's perfectly reasonable to redirect the client to a different resource, and expect them to follow links from there
GET /api/universities?take=500&startingFrom=107
302 Found
Location: /api/universities/page2#107
"The representation you asked for may already be in your cache, and the paging links there will take you to the rest of it"