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

fix(api): avoid returning 405 on /schemas/vaults/:name #12607

Merged
merged 1 commit into from
Feb 23, 2024
Merged

Conversation

gruceo
Copy link
Contributor

@gruceo gruceo commented Feb 22, 2024

This fixes an issue where calling the endpoint POST /schemas/vaults/validate
was conflicting with the endpoint /schemas/vaults/:name which only
has GET implemented, hence resulting in a 405.

By explicting defining a new endpoint /schemas/vaults/validate, Lapis
framework should take care of always choosing it over /schemas/vaults/:name.

Summary

Checklist

  • The Pull Request has tests
  • A changelog file has been created under changelog/unreleased/kong or skip-changelog label added on PR if changelog is unnecessary. README.md
  • There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

Issue reference

Fix KAG-3699

@gruceo gruceo force-pushed the fix/kag-3699 branch 2 times, most recently from 7a643cd to 96967f8 Compare February 22, 2024 17:25
@gruceo gruceo changed the title fix(api): avoid returning 405 on /schemas/vaults/validate fix(api): avoid returning 405 on /schemas/vaults/:name Feb 22, 2024
@gruceo gruceo force-pushed the fix/kag-3699 branch 2 times, most recently from afcdb0b to 7fe1d7b Compare February 22, 2024 17:41
This fixes an issue where calling the endpoint `POST /schemas/vaults/validate`
was conflicting with the endpoint `/schemas/vaults/:name` which only
has GET implemented, hence resulting in a 405.

By explicting defining a new endpoint `/schemas/vaults/validate`, Lapis
framework should take care of always choosing it over `/schemas/vaults/:name`.

KAG-3699
@locao locao merged commit 7e31f08 into master Feb 23, 2024
26 checks passed
@locao locao deleted the fix/kag-3699 branch February 23, 2024 22:00
@gruceo gruceo added the cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee label Apr 1, 2024
@team-gateway-bot
Copy link
Collaborator

Successfully created cherry-pick PR for master:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee core/admin-api size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants