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

createDefaultsSection should be POST instead of PUT #353

Open
viccie30 opened this issue Jan 6, 2025 · 2 comments
Open

createDefaultsSection should be POST instead of PUT #353

viccie30 opened this issue Jan 6, 2025 · 2 comments

Comments

@viccie30
Copy link

viccie30 commented Jan 6, 2025

Adding a defaults section is done with a PUT to /services/haproxy/configuration/defaults, where I had expected a POST.

Changing the method would break backward compatibility, but maybe it is possible to add the more logical POST overload for the same operation?

@smeroth
Copy link

smeroth commented Jan 22, 2025

You're correct.

@mjuraga
Copy link
Collaborator

mjuraga commented Feb 5, 2025

Hi, we will add a new POST method for creating defaults and mark this PUT method as deprecated in 3.1 release. Thank you for your report.

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

No branches or pull requests

3 participants