client
stac_fastapi.extensions.core.collection_search.client ¶
collection-search extensions clients.
AsyncBaseCollectionSearchClient ¶
Bases: ABC
Defines a pattern for implementing the STAC collection-search POST extension.
Source code in stac_fastapi/extensions/core/collection_search/client.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
|
post_all_collections
abstractmethod
async
¶
post_all_collections(search_request: BaseCollectionSearchPostRequest, **kwargs) -> ItemCollection
Get all available collections.
Called with POST /collections
.
Returns:
-
ItemCollection
–A list of collections.
Source code in stac_fastapi/extensions/core/collection_search/client.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
|
BaseCollectionSearchClient ¶
Bases: ABC
Defines a pattern for implementing the STAC collection-search POST extension.
Source code in stac_fastapi/extensions/core/collection_search/client.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
|
post_all_collections
abstractmethod
¶
post_all_collections(search_request: BaseCollectionSearchPostRequest, **kwargs) -> ItemCollection
Get all available collections.
Called with POST /collections
.
Returns:
-
ItemCollection
–A list of collections.
Source code in stac_fastapi/extensions/core/collection_search/client.py
37 38 39 40 41 42 43 44 45 46 47 48 49 |
|