Environment: ASP.NET MVC 4 Web API
Given that the RESTful standard for GET is:
http://www.example.com/api/entity/
returns a collection of all entity
http://www.example.com/api/entity/{id}
returns entity with ID of {id}
...what should be done if there are so many "entity" that making that first call would return a ridiculous amount of result data?
I could just disallow that call altogether and return an HTTP 500 or something, but I'd rather conform to the standard and implement some sort of range option, arbitrary though it may be.
I've been searching around for HTTP headers that would allow for what equates to pagination and came across Accept-Ranges
, but couldn't find an applicable example (if that's even correct to begin with). Am I on the right track? Are there any resources out there that might help?