Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

### Removed

- Removed `/collections-search` endpoint from default landing page. It now only shows when `ENABLE_COLLECTIONS_SEARCH_ROUTE` is set to `True`. [#524](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/524)

### Updated

## [v6.7.2] - 2025-11-04
Expand Down
34 changes: 20 additions & 14 deletions stac_fastapi/core/stac_fastapi/core/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,20 +137,6 @@ def _landing_page(
"href": urljoin(base_url, "search"),
"method": "POST",
},
{
"rel": "collections-search",
"type": "application/json",
"title": "Collections Search",
"href": urljoin(base_url, "collections-search"),
"method": "GET",
},
{
"rel": "collections-search",
"type": "application/json",
"title": "Collections Search",
"href": urljoin(base_url, "collections-search"),
"method": "POST",
},
],
stac_extensions=extension_schemas,
)
Expand Down Expand Up @@ -202,6 +188,26 @@ async def landing_page(self, **kwargs) -> stac_types.LandingPage:
]
)

if self.extension_is_enabled("CollectionsSearchEndpointExtension"):
landing_page["links"].extend(
[
{
"rel": "collections-search",
"type": "application/json",
"title": "Collections Search",
"href": urljoin(base_url, "collections-search"),
"method": "GET",
},
{
"rel": "collections-search",
"type": "application/json",
"title": "Collections Search",
"href": urljoin(base_url, "collections-search"),
"method": "POST",
},
]
)

# Add OpenAPI URL
landing_page["links"].append(
{
Expand Down