carrot / restful-api-spec

Carrots spec/process for building RESTful APIs
MIT License
14 stars 0 forks source link

Fix `Traditional Paged Content` Section #5

Open BrandonRomano opened 8 years ago

BrandonRomano commented 8 years ago

@roideuniverse actually came up with a really awesome pattern to handle this case.

In short: if the user requests 10 models on the client side, actually fetch 11 from the API, but only display 10. If the 11th exists, then there's a next page.