alphagov/govuk_need_api — pull request #17 by JordanHatch (2013-11-18 15:58:52+00:00)
Title: Paginate needs

This changes the Need API to paginate needs returned at `/needs`. Fifty needs are returned per page, along with additional metadata about the number of results and pages.

We use the [kaminari](https://github.com/amatsuda/kaminari/) gem to calculate the correct offset and limit values and abstracting these as a Rails scope.

The response format is consistent with that of other GOV.UK APIs - eg the Content API and the Organisations API.