Skip to content

Generated OpenAPI doesn't include POST requests for Features endpoints #2003

Description

@mikemahoney218-usgs

Description
The generated OpenAPI document lists GET and OPTIONS requests for Features endpoints, but does not list POST requests. This is particularly important for endpoints from providers which support CQL, though endpoints that don't support CQL also accept POST requests -- for instance:

curl --location --request POST 'https://demo.pygeoapi.io/master/collections/obs/items' --data-raw '{}'

Steps to Reproduce
Generate an OpenAPI document for a Features endpoint. Examples:
https://api.waterdata.usgs.gov/ogcapi/v0/openapi
https://api.weather.gc.ca/openapi?f=html

Expected behavior
I expected POST requests to be documented.

Environment

  • pygeoapi version: 0.20.dev0

Metadata

Metadata

Assignees

Labels

OpenAPIOpenAPIbugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions