Default Behavior for POST and PUT #14
D1g1talEntr0py
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
In a REST API, the POST method is typically used to create a new resource on the server, while the PUT method is used to update or replace an existing resource. The specific behavior of these methods may vary depending on the implementation of the API, but this is the general convention followed in most RESTful systems. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Shouldn't the POST receive an array of resources, not add a single resource? That is what PUT is for. Which brings me to my other suggestion. Isn't a PUT for adding or updating? When I send a PUT, it doesn't add anything like it does with POST. I don't know. Maybe I'm wrong.
Beta Was this translation helpful? Give feedback.
All reactions