From 288dce7aec6e6c2ea85f4e2faa71ba3f0d8c75e6 Mon Sep 17 00:00:00 2001 From: mprahl Date: Wed, 3 Jan 2024 16:37:12 -0500 Subject: [PATCH] Add query parameters for sorting Signed-off-by: mprahl --- .../sig-policy/98-long-term-compliance-history/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/enhancements/sig-policy/98-long-term-compliance-history/README.md b/enhancements/sig-policy/98-long-term-compliance-history/README.md index cf8888f..e94627f 100644 --- a/enhancements/sig-policy/98-long-term-compliance-history/README.md +++ b/enhancements/sig-policy/98-long-term-compliance-history/README.md @@ -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: