File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
stac_fastapi/core/stac_fastapi/core Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -356,7 +356,21 @@ async def item_collection(
356356 self .item_serializer .db_to_stac (item , base_url = base_url ) for item in items
357357 ]
358358
359- links = await PagingLinks (request = request , next = next_token ).get_links ()
359+ collection_links = [
360+ {
361+ "rel" : "collection" ,
362+ "type" : "application/json" ,
363+ "href" : urljoin (str (request .base_url ), f"collections/{ collection_id } " ),
364+ },
365+ {
366+ "rel" : "parent" ,
367+ "type" : "application/json" ,
368+ "href" : urljoin (str (request .base_url ), f"collections/{ collection_id } " ),
369+ }
370+ ]
371+
372+ paging_links = await PagingLinks (request = request , next = next_token ).get_links ()
373+ links = collection_links + paging_links
360374
361375 return stac_types .ItemCollection (
362376 type = "FeatureCollection" ,
You can’t perform that action at this time.
0 commit comments