Skip to content

Commit

Permalink
Make explicit how to sort in descending order
Browse files Browse the repository at this point in the history
in README.md
  • Loading branch information
simkimsia authored Nov 26, 2018
1 parent 2769d4e commit 906fc41
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,16 @@ You can use the `sort[]` feature to order your response by one or more fields. D
...
```

For descending order, simply add a `-` sign. To sort by name in descending order for example

```
-->
GET /users/?sort[]=-name
<--
200 OK
...
```

## Directory panel

We love the DRF browsable API, but wish that it included a directory that would let you see your entire list of endpoints at a glance from any page.
Expand Down

0 comments on commit 906fc41

Please sign in to comment.