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

Clarify the JSON response if there are no properties #107

Open
Tracked by #70
aleene opened this issue Oct 14, 2022 · 0 comments
Open
Tracked by #70

Clarify the JSON response if there are no properties #107

aleene opened this issue Oct 14, 2022 · 0 comments
Labels
API ✨ enhancement New feature or request P4

Comments

@aleene
Copy link

aleene commented Oct 14, 2022

Problem

Using the read api when no properties are present, I get a NULL as response. This is not very informative. It is unclear if the request succeeded or not. What happened?

Proposed solution

If there are no properties return with json telling that. It might also be possible that there is no product. Unfortunately reading a non-existing product, creates one. So there will always be a product.

Part of

@aleene aleene added the ✨ enhancement New feature or request label Oct 14, 2022
@teolemon teolemon changed the title Json response JSON response Oct 17, 2022
@teolemon teolemon changed the title JSON response Clarify the JSON response if there are no properties Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API ✨ enhancement New feature or request P4
Projects
Status: No status
Development

No branches or pull requests

2 participants