phly / PhlyRestfully

ZF2 module for creating RESTful JSON APIs using HAL and API-Problem
108 stars 45 forks source link

Allows the page_size value to be passed in the request. #87

Closed elyobo closed 11 years ago

elyobo commented 11 years ago

It is a frequent requirement that API clients can indicate the number of results that they require, rather than the API providing a fixed number of results.

This change allows resources to specify a page_size_parameter which is used to indicate the name of a query parameter which indicates the number of results to return.

elyobo commented 11 years ago

Build failures appear to be unrelated to the pull request.

elyobo commented 11 years ago

@weierophinney is there anything that you need me to tidy up on this?

elyobo commented 11 years ago

Thanks @weierophinney, that's great. I'm happy to provide unit tests on any further reuests, just refuse to merge until I stump up ;)