Skip to content

Commit

Permalink
Use ows_schema_location for URLS in API response
Browse files Browse the repository at this point in the history
  • Loading branch information
ejn committed Mar 4, 2024
1 parent 48b19a2 commit 675dd72
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mapogcapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 675dd72

Please sign in to comment.