Browse Source

doc update: format sorting

pull/8/head
oof1lab 7 years ago
parent
commit
de3f4a8d50
  1. 8
      README.md

8
README.md

@ -101,20 +101,24 @@ By default 20 records and max of 100 are returned per GET request on a table.
``` ```
## Sorting ## Order by / Sorting
#### _sort #### ASC
``` ```
/api/payments?_sort=column1 /api/payments?_sort=column1
``` ```
eg: sorts ascending by column1 eg: sorts ascending by column1
#### DESC
``` ```
/api/payments?_sort=-column1 /api/payments?_sort=-column1
``` ```
eg: sorts descending by column1 eg: sorts descending by column1
#### Multiple fields in sort
``` ```
/api/payments?_sort=column1,-column2 /api/payments?_sort=column1,-column2
``` ```

Loading…
Cancel
Save