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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
11
11
- Added `STAC_FASTAPI_ES_MAPPINGS_FILE` environment variable to support file-based custom mappings configuration.
12
12
- Added configuration-based support for extending Elasticsearch/OpenSearch index mappings via environment variables, allowing users to customize field mappings without code change through `STAC_FASTAPI_ES_CUSTOM_MAPPINGS` environment variable. Also added `STAC_FASTAPI_ES_DYNAMIC_MAPPING` variable to control dynamic mapping behavior. [#546](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/546)
13
13
14
+
- Added catalogs route support to enable federated hierarchical catalog browsing and navigation in the STAC API. [#547](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/547)
@@ -169,6 +170,8 @@ SFEOS provides enhanced collection search capabilities through two primary route
169
170
-**GET/POST `/collections`**: The standard STAC endpoint with extended query parameters
170
171
-**GET/POST `/collections-search`**: A custom endpoint that supports the same parameters, created to avoid conflicts with the STAC Transactions extension if enabled (which uses POST `/collections` for collection creation)
171
172
173
+
The `/collections-search` endpoint follows the [STAC API Collection Search Endpoint](https://github.com/Healy-Hyperspatial/stac-api-extensions-collection-search-endpoint) specification, which provides a dedicated, conflict-free mechanism for advanced collection searching.
174
+
172
175
These endpoints support advanced collection discovery features including:
173
176
174
177
-**Sorting**: Sort collections by sortable fields using the `sortby` parameter
@@ -228,6 +231,96 @@ These extensions make it easier to build user interfaces that display and naviga
228
231
> **Important**: Adding keyword fields to make text fields sortable can significantly increase the index size, especially for large text fields. Consider the storage implications when deciding which fields to make sortable.
229
232
230
233
234
+
## Catalogs Route
235
+
236
+
SFEOS supports federated hierarchical catalog browsing through the `/catalogs` endpoint, enabling users to navigate through STAC catalog structures in a tree-like fashion. This extension allows for organized discovery and browsing of collections and sub-catalogs.
237
+
238
+
This implementation follows the [STAC API Catalogs Extension](https://github.com/Healy-Hyperspatial/stac-api-extensions-catalogs) specification, which enables a Federated STAC API architecture with a "Hub and Spoke" structure.
239
+
240
+
### Features
241
+
242
+
-**Hierarchical Navigation**: Browse catalogs and sub-catalogs in a parent-child relationship structure
243
+
-**Collection Discovery**: Access collections within specific catalog contexts
244
+
-**STAC API Compliance**: Follows STAC specification for catalog objects and linking
245
+
-**Flexible Querying**: Support for standard STAC API query parameters when browsing collections within catalogs
246
+
247
+
### Endpoints
248
+
249
+
-**GET `/catalogs`**: Retrieve the root catalog and its child catalogs
250
+
-**POST `/catalogs`**: Create a new catalog (requires appropriate permissions)
251
+
-**GET `/catalogs/{catalog_id}`**: Retrieve a specific catalog and its children
252
+
-**DELETE `/catalogs/{catalog_id}`**: Delete a catalog (optionally cascade delete all collections)
253
+
-**GET `/catalogs/{catalog_id}/collections`**: Retrieve collections within a specific catalog
254
+
-**POST `/catalogs/{catalog_id}/collections`**: Create a new collection within a specific catalog
255
+
-**GET `/catalogs/{catalog_id}/collections/{collection_id}`**: Retrieve a specific collection within a catalog
256
+
-**GET `/catalogs/{catalog_id}/collections/{collection_id}/items`**: Retrieve items within a collection in a catalog context
257
+
-**GET `/catalogs/{catalog_id}/collections/{collection_id}/items/{item_id}`**: Retrieve a specific item within a catalog context
The DELETE endpoint supports the following query parameter:
306
+
307
+
-**`cascade`** (boolean, default: `false`):
308
+
- If `false`: Only deletes the catalog. Collections linked to the catalog remain in the database but lose their catalog link.
309
+
- If `true`: Deletes the catalog AND all collections linked to it. Use with caution as this is a destructive operation.
310
+
311
+
### Response Structure
312
+
313
+
Catalog responses include:
314
+
-**Catalog metadata**: ID, title, description, and other catalog properties
315
+
-**Child catalogs**: Links to sub-catalogs for hierarchical navigation
316
+
-**Collections**: Links to collections contained within the catalog
317
+
-**STAC links**: Properly formatted STAC API links for navigation
318
+
319
+
This feature enables building user interfaces that provide organized, hierarchical browsing of STAC collections, making it easier for users to discover and navigate through large collections organized by theme, provider, or any other categorization scheme.
320
+
321
+
> **Configuration**: The catalogs route can be enabled or disabled by setting the `ENABLE_CATALOGS_ROUTE` environment variable to `true` or `false`. By default, this endpoint is **disabled**.
322
+
323
+
231
324
## Package Structure
232
325
233
326
This project is organized into several packages, each with a specific purpose:
@@ -361,6 +454,7 @@ You can customize additional settings in your `.env` file:
361
454
|`ENABLE_COLLECTIONS_SEARCH`| Enable collection search extensions (sort, fields, free text search, structured filtering, and datetime filtering) on the core `/collections` endpoint. |`true`| Optional |
362
455
|`ENABLE_COLLECTIONS_SEARCH_ROUTE`| Enable the custom `/collections-search` endpoint (both GET and POST methods). When disabled, the custom endpoint will not be available, but collection search extensions will still be available on the core `/collections` endpoint if `ENABLE_COLLECTIONS_SEARCH` is true. |`false`| Optional |
363
456
|`ENABLE_TRANSACTIONS_EXTENSIONS`| Enables or disables the Transactions and Bulk Transactions API extensions. This is useful for deployments where mutating the catalog via the API should be prevented. If set to `true`, the POST `/collections` route for search will be unavailable in the API. |`true`| Optional |
457
+
|`ENABLE_CATALOGS_ROUTE`| Enable the `/catalogs` endpoint for federated hierarchical catalog browsing and navigation. When enabled, provides access to federated STAC API architecture with hub-and-spoke pattern. |`false`| Optional |
364
458
|`STAC_GLOBAL_COLLECTION_MAX_LIMIT`| Configures the maximum number of STAC collections that can be returned in a single search request. | N/A | Optional |
365
459
|`STAC_DEFAULT_COLLECTION_LIMIT`| Configures the default number of STAC collections returned when no limit parameter is specified in the request. |`300`| Optional |
366
460
|`STAC_GLOBAL_ITEM_MAX_LIMIT`| Configures the maximum number of STAC items that can be returned in a single search request. | N/A | Optional |
0 commit comments