Skip to content

Constant Parameters

Selahattin Ünlü edited this page Nov 27, 2016 · 7 revisions

order_by

Parameters (String column, String direction) or (String "random")

Default id,desc

Example: ?order_by=id,desc, ?order_by=random


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


appends

This will add dynamic appends to Model

Parameters (String appends)

Default []

Examples

  • ?appends=is_admin,balance