We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c46fdc0 commit 40dd083Copy full SHA for 40dd083
stac_fastapi/sqlalchemy/stac_fastapi/sqlalchemy/core.py
@@ -169,7 +169,23 @@ def item_collection(
169
else None
170
)
171
172
- links = []
+ links = [
173
+ {
174
+ "rel": Relations.self.value,
175
+ "type": "application/geo+json",
176
+ "href": str(kwargs["request"].url),
177
+ },
178
179
+ "rel": Relations.root.value,
180
+ "type": "application/json",
181
+ "href": str(kwargs["request"].base_url),
182
183
184
+ "rel": Relations.parent.value,
185
186
187
188
+ ]
189
if page.next:
190
links.append(
191
{
0 commit comments