The POST method is usually used for create operations,
and the PUT is used for edit/update operations.
Codeigniter REST API, difference between PUT and POST
-
29-06-2022 - |
Question
I am making an API for my site using Philip Sturgeon's REST server and i am in a little dilemma. I am not shure which action to use for edit and which for create. POST or PUT?
Solution
OTHER TIPS
Put methods are Idempotent whereas Post methods are non-Idempotent. means put are safely repeatable and post are not safely repeatable
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow