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

Add missing Query: true metadata to API definitions #189

Merged
merged 1 commit into from
Jul 21, 2023

Conversation

maxb
Copy link
Contributor

@maxb maxb commented Jul 20, 2023

As described in hashicorp/vault#21949 endpoints with non-path parameters
that can be made use of during ReadOperation callbacks should have those
fields marked as Query: true to ensure the OpenAPI spec truly reflects
how the endpoints can be called.

Endpoints concerned:

  • gcp/key/{roleset}
  • gcp/roleset/{roleset}/key
  • gcp/static-account/{name}/key

The OpenAPI operation IDs for these operations that mention
"with-parameters" should also be changed, as they perpetuate
a misunderstanding - both read (GET) and update (POST/PUT) forms of
these APIs are equally capable of being used with parameters.

As described in hashicorp/vault#21949 endpoints with non-path parameters
that can be made use of during ReadOperation callbacks should have those
fields marked as `Query: true` to ensure the OpenAPI spec truly reflects
how the endpoints can be called.

Endpoints concerned:
- gcp/key/{roleset}
- gcp/roleset/{roleset}/key
- gcp/static-account/{name}/key

The OpenAPI operation IDs for these operations that mention
"with-parameters" should also be changed, as they perpetuate
a misunderstanding - both read (GET) and update (POST/PUT) forms of
these APIs are **equally** capable of being used with parameters.
@averche
Copy link
Contributor

averche commented Jul 21, 2023

Thanks again for the work, @maxb!

@averche averche merged commit d040805 into hashicorp:main Jul 21, 2023
2 checks passed
@maxb maxb deleted the missing-query-apis branch July 21, 2023 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants