This example API definition can be used to provide an OpenAPI 3.0 definition for an implementation of OGC API - Environmental Data Retrieval. The API definition can be visualized with SwaggerUI.
The list of supported paths should be adjusted in ogcapi-environmental-data-retrieval-1.yaml.
This example API definition can be used to provide an OpenAPI 3.1 definition for an implementation of OGC API - Environmental Data Retrieval. The API definition can be visualized with SwaggerUI.
The list of supported paths should be adjusted in ogcapi-environmental-data-retrieval-1.yaml.
The ogcapi-environmental-data-retrieval-1-oas{x}.bundled.json file is a standalone/portable OpenAPI document which includes all dependencies included from the components sub-directories, and is built automatically via GitHub Actions. To test/build the bundle locally:
# install Swagger CLI via npm
npm install -g @apidevtools/swagger-cli
# generate OpenAPI 3.0 bundle
cd standard/openapi
swagger-cli bundle -r -o ogcapi-environmental-data-retrieval-1-oas30.bundled.json ogcapi-environmental-data-retrieval-1-oas30.yaml
# generate OpenAPI 3.1 bundle
cd standard/openapi
swagger-cli bundle -r -o ogcapi-environmental-data-retrieval-1-oas31.bundled.json ogcapi-environmental-data-retrieval-1-oas31.yamlSee also Swagger CLI and its GitHub repository.