Skip to content

Commit

Permalink
Merge pull request #263 from simkimsia/patch-2
Browse files Browse the repository at this point in the history
Make explicit how to sort in descending order
  • Loading branch information
ryochiji authored Nov 28, 2018
2 parents 2769d4e + 906fc41 commit a263ff8
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 a263ff8

Please sign in to comment.