diff --git a/src/mapogcapi.cpp b/src/mapogcapi.cpp index f143f20b08..3ed9c1f716 100644 --- a/src/mapogcapi.cpp +++ b/src/mapogcapi.cpp @@ -1675,11 +1675,12 @@ static int processApiRequest(mapObj *map, cgiRequestObj *request, } response["servers"].push_back(server); + const std::string oapif_schema_base_url = msOWSGetSchemasLocation(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;