Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some Admin API Open API definitions do not provide examples #1847

Open
doublebyte1 opened this issue Nov 18, 2024 · 0 comments
Open

Some Admin API Open API definitions do not provide examples #1847

doublebyte1 opened this issue Nov 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@doublebyte1
Copy link
Contributor

Description
The Admin API Open API definitions do not provide examples for the payload, thus it is not possible to try the PUT and PATCH paths.

Steps to Reproduce

  • Enable admin API in the pygeoapi config
  • open the Open API swagger page on /openapi and scroll all the way to the admin section. Try one of the PUT or PATCH examples, by clicking "execute".

Expected behavior
The server should return a 200 or 204 code and update the configuration. Instead we get a 404 error.

Screenshots/Tracebacks
put-admin1
put-admin2

Environment

  • OS: Mac OsX
  • Python version: Python 3.11.0
  • pygeoapi version: 0.19.dev0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant