3 ms·
POST is usually creation, but may be any arbitrary request that needs to provide a body. PUT is replacement and PATCH is update. Functionally that means PATCH c
by dexwiz 3y ago
POST is usually creation, but may be any arbitrary request that needs to provide a body. PUT is replacement and PATCH is update. Functionally that means PATCH can usually update a subset of fields while PUT replaces all fields and unsets any not provided.
But it’s all up to the implementation. I regularly see them misused or everything is a POST. At then end of the day they are functionally equivalent. Idempotency is not often considered outside of specific cases like payment.
- srinivasandoor 3y ago[dead]