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

Change HTTP methods of non-idempotent REST endpoints from PUT to POST #50

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

florian-h05
Copy link
Member

The difference between PUT and POST is that PUT is idempotent: calling it once is no different from calling it several times successively (there are no side effects). Successive identical POST requests may have additional effects, such as creating the same order several times.

From https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST.

> The difference between PUT and POST is that PUT is idempotent: calling it once is no different from calling it several times successively (there are no side effects). Successive identical POST requests may have additional effects, such as creating the same order several times.

From https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
@florian-h05 florian-h05 added the API breaking Breaking API compatibility label Jan 28, 2025
@florian-h05 florian-h05 merged commit d913ae6 into main Jan 28, 2025
6 checks passed
@florian-h05 florian-h05 deleted the post branch January 28, 2025 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API breaking Breaking API compatibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant