From 5081b9668c35bb2458580f611dc64a5f8f1cf3c2 Mon Sep 17 00:00:00 2001 From: Stijn Caerts Date: Wed, 13 Mar 2024 13:36:01 +0100 Subject: [PATCH] add items link to inferred link relations (#634) --- CHANGES.md | 4 ++++ stac_fastapi/types/stac_fastapi/types/links.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 16bc9a809..7892e6efa 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,6 +2,10 @@ ## [Unreleased] +### Changed + +* Add `items` link to inferred link relations ([#634](https://github.com/stac-utils/stac-fastapi/issues/634)) + ## [2.4.9] - 2023-11-17 ### Added diff --git a/stac_fastapi/types/stac_fastapi/types/links.py b/stac_fastapi/types/stac_fastapi/types/links.py index 2a4c954d0..28f05d6c0 100644 --- a/stac_fastapi/types/stac_fastapi/types/links.py +++ b/stac_fastapi/types/stac_fastapi/types/links.py @@ -10,7 +10,7 @@ # These can be inferred from the item/collection so they aren't included in the database # Instead they are dynamically generated when querying the database using the # classes defined below -INFERRED_LINK_RELS = ["self", "item", "parent", "collection", "root"] +INFERRED_LINK_RELS = ["self", "item", "parent", "collection", "root", "items"] def filter_links(links: List[Dict]) -> List[Dict]: