Skip to content

Constant Parameters

Selahattin edited this page Oct 8, 2015 · 7 revisions

order_by

Parameters (String column, String direction)

Default id,desc

Example: ?order_by=id,desc

group_by

Parameters (String groups)

Default -

Example: ?group_by=id,name,....

limit

Parameters (Integer limit or String 'unlimited')

Default 15

Example ?limit=5, ?limit=unlimited

page

Parameters (Integer page)

Default 1

Example ?page=3

columns

select columns

Parameters (String columns)

Default *

Examples

  • ?columns=name,age,id
  • ?columns=*,city.id,city.name,country.name

includes

Eager Loading.

Parameters (String includes)

Default []

Example ?includes=city,country,town