-
Notifications
You must be signed in to change notification settings - Fork 66
Constant Parameters
Selahattin Ünlü edited this page Nov 27, 2016
·
7 revisions
Parameters (String column, String direction) or (String "random")
Default id,desc
Example: ?order_by=id,desc
, ?order_by=random
Parameters (String groups)
Default -
Example: ?group_by=id,name,....
Parameters (Integer limit or String 'unlimited')
Default 15
Example ?limit=5, ?limit=unlimited
Parameters (Integer page)
Default 1
Example ?page=3
select columns
Parameters (String columns)
Default *
Examples
- ?columns=name,age,id
- ?columns=*,city.id,city.name,country.name
Eager Loading.
Parameters (String includes)
Default []
Example ?includes=city,country,town
This will add the given values to Model's appends property as dynamically https://laravel.com/docs/5.3/eloquent-serialization#appending-values-to-json
Parameters (String appends)
Default []
Examples
- ?appends=is_admin,balance