Snippets API: Add creation time-range filters
Release notes
The Snippets APIs (/snippets
, and /snippets/public
) now support specifying optional time ranges to filter based on their last creation or update times
Problem to solve
Currently it is possible for pagination to break between calls when listing snippets, if a new snippet is created while a subsequent list API page is being queried. This is because of the way pagination works (stateless, where each page request is evaluated upon receipt).
To provide for a more consistent result, it could help to provide a time filter field such as start
(and also end
) times to clip the results in an API response.
Proposal
Provide a way in the API to specify a bound for created_at
time when querying snippets, such as by adding fields created_before=X
and created_after=Y
that limit the database query over column created_at
.