====== Differences ====== This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
api2:getting_started [2018/07/23 09:37] maries |
api2:getting_started [2018/07/26 15:23] (current) maries |
||
---|---|---|---|
Line 8: | Line 8: | ||
^ Parameter name ^ Possible values ^ Description ^ | ^ Parameter name ^ Possible values ^ Description ^ | ||
- | | order_by* | attribute name of the object | the ordering criteria can be the unique identifier on Domoscio's API database (named 'id'), the date of creation (name 'created_at'), the date of the last update (name 'updated_at')... | | + | | sort_by* | attribute name of the object with ascending or descending option: attribute.option; multiple values are possible | the ordering criteria can be the unique identifier on Domoscio's API database (named 'id'), the date of creation (name 'created_at'), the date of the last update (name 'updated_at')... \\ Two options : asc, id est ascending : the smallest values come first \\ desc id est descending : the biggest values come first; example: ../object?sort_by=id.asc,student_id.desc | |
- | | order* | ASC\\ DESC| ASC, id est ascending : the smallest values come first \\ DESC id est descending : the biggest values come first | | + | | page | integer | Number of the page you want to view; 1 by default| |
- | | page | integer | Number of the page you want to view; 1 by default | | + | |
* Mandatory parameters | * Mandatory parameters | ||