Skip to content

Commit

Permalink
updates for parsing with stac browser (#1890)
Browse files Browse the repository at this point in the history
change type to application/json and parse id from jsondata
  • Loading branch information
sjordan29 authored Dec 24, 2024
1 parent c379f22 commit 6aa67b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pygeoapi/provider/hateoas.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def get_data_path(self, baseurl, urlpath, entrypath):
try:
jsondata = _get_json_data(f'{data_path}/collection.json')
resource_type = 'Collection'
for key in ['license', 'extent']:
for key in ['license', 'extent', 'id']:
if key in jsondata:
content[key] = jsondata[key]
except Exception:
Expand Down Expand Up @@ -151,15 +151,15 @@ def get_data_path(self, baseurl, urlpath, entrypath):
child_links.append({
'rel': 'child',
'href': newpath,
'type': 'text/html',
'type': 'application/json',
'created': "-",
'entry:type': 'Catalog'
})
elif entry_type == 'collection.json':
child_links.append({
'rel': 'child',
'href': newpath,
'type': 'text/html',
'type': 'application/json',
'created': "-",
'entry:type': 'Collection'
})
Expand Down

0 comments on commit 6aa67b4

Please sign in to comment.