Skip to content

Commit 5caac1a

Browse files
authored
EDR: emit data link JSON media type as CoverageJSON (#2357)
1 parent 0c756e1 commit 5caac1a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

pygeoapi/api/collection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ def gen_collection(api, request, dataset: str,
454454
title2 = f'{qt} {title2}'
455455

456456
data['links'].extend([{
457-
'type': 'application/json',
457+
'type': 'application/vnd.cov+json',
458458
'rel': 'data',
459459
'title': title1,
460460
'href': f'{api.get_collections_url()}/{dataset}/{qt}?f={F_JSON}' # noqa

pygeoapi/api/environmental_data_retrieval.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ def get_collection_edr_query(api: API, request: APIRequest,
461461
'title': collections[dataset]['title'],
462462
'href': data['dataset_path']
463463
}, {
464-
'type': 'application/prs.coverage+json',
464+
'type': 'application/vnd.cov+json',
465465
'rel': request.get_linkrel(F_COVERAGEJSON),
466466
'title': l10n.translate('This document as CoverageJSON', request.locale), # noqa
467467
'href': f'{uri}?f={F_COVERAGEJSON}{serialized_query_params}'
@@ -603,7 +603,7 @@ def get_oas_30(cfg: dict, locale: str) -> tuple[list[dict[str, str]], dict[str,
603603
'200': {
604604
'description': 'Response',
605605
'content': {
606-
'application/prs.coverage+json': {
606+
'application/vnd.cov+json': {
607607
'schema': {
608608
'$ref': f"{OPENAPI_YAML['oaedr']}/schemas/coverageJSON.yaml" # noqa
609609
}
@@ -687,7 +687,7 @@ def get_oas_30(cfg: dict, locale: str) -> tuple[list[dict[str, str]], dict[str,
687687
'200': {
688688
'description': 'Response',
689689
'content': {
690-
'application/prs.coverage+json': {
690+
'application/vnd.cov+json': {
691691
'schema': {
692692
'$ref': f"{OPENAPI_YAML['oaedr']}/schemas/coverageJSON.yaml" # noqa
693693
}

0 commit comments

Comments
 (0)