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

Replace PUT containers with POST containers #256

Open
roman-khimov opened this issue Oct 29, 2024 · 0 comments
Open

Replace PUT containers with POST containers #256

roman-khimov opened this issue Oct 29, 2024 · 0 comments
Labels
enhancement Improving existing functionality I3 Minimal impact S3 Minimally significant U3 Regular
Milestone

Comments

@roman-khimov
Copy link
Member

Is your feature request related to a problem? Please describe.

I'm always frustrated when we're not following RFC 9110. The short definition of PUT is

Replace all current representations of the target resource with the request content.

The resource is containers, but we're far from replacing it here (since to GET containers is to obtain a list of them). We're just adding a new one.

Describe the solution you'd like

Make it a POST. Return 201 from it with a proper Location.

Describe alternatives you've considered

Keep as is, it works too. Well, we need to keep it anyway in deprecated fashion.

Additional context

https://www.rfc-editor.org/rfc/rfc9110.html

@roman-khimov roman-khimov added U3 Regular enhancement Improving existing functionality S3 Minimally significant I3 Minimal impact labels Oct 29, 2024
@roman-khimov roman-khimov added this to the v0.12.0 milestone Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improving existing functionality I3 Minimal impact S3 Minimally significant U3 Regular
Projects
None yet
Development

No branches or pull requests

1 participant