[Custom runtimes - STAC] Implement limit
and offset
for the /collections
endpoint
#7
Labels
enhancement
New feature or request
By default the
/collections
endpoint will return ALL collections it finds in pgstac. This is ok when there are not too many collections, but definitely not a good idea when you have more than 100 collections (I was about to ingest 400 collections from LINZ when I realized it would mostly break the endpoint).in
tipgstac
I showed how to use limit/offset usingpgstac.collections
tablehttps://github.com/developmentseed/tipgstac/blob/main/tipgstac/dependencies.py#L48-L54
instead of the
pgstac.all_collections()
functionhttps://github.com/stac-utils/stac-fastapi-pgstac/blob/main/stac_fastapi/pgstac/core.py#L44-L49
The text was updated successfully, but these errors were encountered: