You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: adding token based pagination + limit to 4 endpoints
* feat: updated backend models which now can accept a limit and token argument return tuples of data and if applicable, a pagination token
* feat: paginated endpoints return 'next' Link object that should be used to paginate through results.
* tests: creating pagination tester to isolate pagination checks into a uniform checker and make test logic more straightforward and readable
* feat: adding mock backend implementations for testing/demonstration purposes in applicaton.py
* feat: moved link object creation in paginated endpoints to separate functions to improve endpoint business logic readability
Pagination is token based and follows recommendations in the [STAC API pagination]. Limit and token are passed in as query params for `GET` endpoints, and via the body aas separte key/value pairs for `POST` requests.
18
+
19
+
If pagination is available and more records remain the response object will contain a `next` link object that can be used to get the next page of results. No `next``Link` returned indicates there are no further records available.
20
+
21
+
`limit` defaults to 10 and maxes at 100.
22
+
11
23
12
24
## ADRs
13
25
@@ -59,3 +71,4 @@ With the `uvicorn` defaults the app should be accessible at
0 commit comments