diff --git a/pygeoapi/provider/hateoas.py b/pygeoapi/provider/hateoas.py index cc3ad5285..dfb98123f 100644 --- a/pygeoapi/provider/hateoas.py +++ b/pygeoapi/provider/hateoas.py @@ -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: @@ -151,7 +151,7 @@ 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' }) @@ -159,7 +159,7 @@ def get_data_path(self, baseurl, urlpath, entrypath): child_links.append({ 'rel': 'child', 'href': newpath, - 'type': 'text/html', + 'type': 'application/json', 'created': "-", 'entry:type': 'Collection' })