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

Product API should return more attributes by default #1612

Closed
jmiranda opened this issue Apr 24, 2020 · 0 comments
Closed

Product API should return more attributes by default #1612

jmiranda opened this issue Apr 24, 2020 · 0 comments

Comments

@jmiranda
Copy link
Member

jmiranda commented Apr 24, 2020

Product API only returns four basic properties. Need to add all first-level attributes to JSON.

curl -b cookies.txt -X GET -H "Accept: application/json" \
-H "Content-Type: application/json" \
https://openboxes.ngrok.io/openboxes/api/products/10001

{"data":{"id":"10001","productCode":"10001","name":"Mask, Oxygen, Nonrebreather, Pediatric","description":null}}

Any new associations should be added as separate endpoints.

jmiranda added a commit that referenced this issue Apr 24, 2020
Product API should return more attributes by default fixed #1612
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