From 704aa318a9b1c8f27174444431a54075653bc0ee Mon Sep 17 00:00:00 2001 From: Edward Nash Date: Mon, 4 Mar 2024 13:30:08 +0100 Subject: [PATCH] Use ows_schema_location for URLS in API response --- src/mapogcapi.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mapogcapi.cpp b/src/mapogcapi.cpp index f143f20b08..03eb937e4f 100644 --- a/src/mapogcapi.cpp +++ b/src/mapogcapi.cpp @@ -1675,11 +1675,14 @@ static int processApiRequest(mapObj *map, cgiRequestObj *request, } response["servers"].push_back(server); + const std::string oapif_schema_base_url = msOWSGetSchemaLocation(map); const std::string oapif_yaml_url = - "http://schemas.opengis.net/ogcapi/features/part1/1.0/openapi/" + oapif_schema_base_url + "/ogcapi/features/part1/1.0/openapi/" "ogcapi-features-1.yaml"; const std::string oapif_part2_yaml_url = - "http://schemas.opengis.net/ogcapi/features/part2/1.0/openapi/" + oapif_schema_base_url + "/ogcapi/features/part2/1.0/openapi/" "ogcapi-features-2.yaml"; json paths;