Skip to content

API filtering #18

@RedTn

Description

@RedTn

Currently for restaurants, the API needs to be able to support server-side filtering query parameters.

My proposal for the params:

  • ?page[offset] => the page offset
  • ?page[limit] => the limit of items returned per page
  • ?sort => what column to sort on
  • ?desc => sort descending, if this param isnt specified then sort asc

Sample query:

http://asktoni.com/restaurants?page[offset]=1&page[limit]=20&sort=name&desc

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions