Idempotence HTTP methods

Backend

11/27/2022, 11:56:07 AM

by Leo Voon

idempotent – “You made a change, but if you made the same change again and again, it would always give back the same result”

POST – Cannot be repeated safely (non-idempotent)

GET, PUT, DELETE, – Safely repeatable (idempotent)

PATCH – it depends https://stackoverflow.com/questions/28459418/use-of-put-vs-patch-methods-in-rest-api-real-life-scenarios/39338329#39338329