Skip to content

Commit

Permalink
Add query parameters for sorting
Browse files Browse the repository at this point in the history
Signed-off-by: mprahl <mprahl@users.noreply.github.com>
  • Loading branch information
mprahl committed Jan 3, 2024
1 parent ddc431a commit 288dce7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ The following optional query parameters would be accepted on this HTTP endpoint:
- after - an ISO-8601 timestamp to indicate only compliance events after this time should be shown.
- page - the page number in the query. This defaults to 1.
- per_page - the number of compliance events returned per page. This defaults to 20 and maxes out at 100.
- sort - the field to sort by. This defaults to `timestamps`.
- direction - the direction to sort by. This defaults to `desc`. It can be `asc` or `desc`.

The output would look as follows and be sorted by timestamps in descending order. The content would be filtered based on
the user's access as described above:
Expand Down

0 comments on commit 288dce7

Please sign in to comment.