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

entity api should return HTTP 204 status code and no body when entity does not exist #3387

Open
reubenmiller opened this issue Feb 7, 2025 · 0 comments
Assignees
Labels
improvement User value theme:entity_store Entity store related functionality

Comments

@reubenmiller
Copy link
Contributor

Is your feature improvement request related to a problem? Please describe.

Follow the REST API guidelines for deletion of entities from the entity store, so that it is easier for users to consume and reason with.

Describe the solution you'd like

When using the DELETE http://localhost:8000/tedge/entity-store/v1/entities/{topic-id} API, if no entities are deleted because the given topic-id does not exist, then return a response in the following format:

State HTTP Status Body
Current 200 []
Expected 204 empty body

Describe alternatives you've considered

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement User value theme:entity_store Entity store related functionality
Projects
None yet
Development

No branches or pull requests

2 participants