Skip to content

Commit

Permalink
update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesfisher-geo committed May 6, 2024
1 parent 52177c5 commit 32883fa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [Unreleased]

### Added

* Add base support for the Aggregation extension [#684](https://github.com/stac-utils/stac-fastapi/pull/684)

## [3.0.0a0] - 2024-05-06

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,25 +71,25 @@ def register(self, app: FastAPI) -> None:
self.router.add_api_route(
name="Aggregations",
path="/aggregations",
methods=["GET"],
methods=["GET", "POST"],
endpoint=create_async_endpoint(self.client.get_aggregations, EmptyRequest),
)
self.router.add_api_route(
name="Collection Aggregations",
path="/collections/{collection_id}/aggregations",
methods=["GET"],
methods=["GET", "POST"],
endpoint=create_async_endpoint(self.client.get_aggregations, CollectionUri),
)
self.router.add_api_route(
name="Aggregate",
path="/aggregate",
methods=["GET"],
methods=["GET", "POST"],
endpoint=create_async_endpoint(self.client.aggregate, self.GET),
)
self.router.add_api_route(
name="Collection Aggregate",
path="/collections/{collection_id}/aggregate",
methods=["GET"],
methods=["GET", "POST"],
endpoint=create_async_endpoint(self.client.aggregate, self.GET),
)
app.include_router(self.router, tags=["Aggregation Extension"])
2 changes: 1 addition & 1 deletion stac_fastapi/types/stac_fastapi/types/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ def landing_page(self, **kwargs) -> stac.LandingPage:
"method": "GET",
},
{
"rel": "aggregation",
"rel": "aggregations",
"type": "application/json",
"title": "Aggregations",
"href": urljoin(base_url, "aggregations"),
Expand Down

0 comments on commit 32883fa

Please sign in to comment.