diff --git a/CHANGELOG.md b/CHANGELOG.md index 255f27e6..7c743ba6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Added +- Collection-level Assets to the CollectionSerializer [#148](https://github.com/stac-utils/stac-fastapi-elasticsearch/issues/148) + +### Added + - Examples folder with example docker setup for running sfes from pip [#147](https://github.com/stac-utils/stac-fastapi-elasticsearch/pull/147) ### Changed diff --git a/stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/serializers.py b/stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/serializers.py index 690b475b..725e8f65 100644 --- a/stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/serializers.py +++ b/stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/serializers.py @@ -132,6 +132,7 @@ def db_to_stac(cls, collection: dict, base_url: str) -> stac_types.Collection: providers = collection.get("providers", {}) summaries = collection.get("summaries", {}) extent = collection.get("extent", {}) + collection_assets = collection.get("assets", {}) # Create the collection links using CollectionLinks collection_links = CollectionLinks( @@ -157,4 +158,5 @@ def db_to_stac(cls, collection: dict, base_url: str) -> stac_types.Collection: summaries=summaries, extent=extent, links=collection_links, + assets=collection_assets, )