Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.

Commit a19bd34

Browse files
docs: updating README.md with pagination information
1 parent 7949857 commit a19bd34

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@ guaranteed to be not correct.
88
STAPI FastAPI provides an `fastapi.APIRouter` which must be included in
99
`fastapi.FastAPI` instance.
1010

11+
### Pagination
12+
13+
4 endpoints currently offer pagination:
14+
`GET`: `'/orders`, `/products`, `/orders/{order_id}/statuses`
15+
`POST`: `/opportunities`.
16+
17+
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+
1123

1224
## ADRs
1325

@@ -59,3 +71,4 @@ With the `uvicorn` defaults the app should be accessible at
5971

6072
[STAPI spec]: https://github.com/stapi-spec/stapi-spec
6173
[poetry]: https://python-poetry.org/
74+
[STAC API pagination]: https://github.com/radiantearth/stac-api-spec/blob/release/v1.0.0/item-search/examples.md#paging-examples

0 commit comments

Comments
 (0)