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 standard patch/put api message update action #5410

Merged

Conversation

AntonKhorev
Copy link
Collaborator

A standard HTTP verb for update action in Rails is PATCH/PUT, but for messages API it was made POST for some reason. Here I'm adding PATCH/PUT. I'm keeping POST outside of the resources, but we should deprecate it.

Also I'm moving the resources to the api namespace. This allows to remove :as.

@tomhughes
Copy link
Member

Looks good to me, thanks.

@tomhughes tomhughes merged commit 7d4cc85 into openstreetmap:master Dec 18, 2024
22 checks passed
@AntonKhorev AntonKhorev deleted the api-messages-resourceful-routes branch December 18, 2024 15:01
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.

2 participants