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

Suggestion: Make the API idempotent? #490

Open
brucellino opened this issue Jul 17, 2024 · 0 comments
Open

Suggestion: Make the API idempotent? #490

brucellino opened this issue Jul 17, 2024 · 0 comments

Comments

@brucellino
Copy link

brucellino commented Jul 17, 2024

I was expecting the API to be idempotent, but it is apparently not designed to be so

e.g. DELETE of an nonexistent topic gives 409 instead of 200 or 204. If there is no topic, my statement "The following topic must not exist" is already satisfied. Instead I need to do error handling.

A similar logic holds for PUT on a topic that already exists. The statement "the following topic should exist" is already satisfied, so if the API were idempotent, it would return a success code instead of a 409

What is your feeling on this? Any appetite for making the API idempotent?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant