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

Investigate how to handle posting batch readings #6

Open
jessetham opened this issue Jul 27, 2018 · 0 comments
Open

Investigate how to handle posting batch readings #6

jessetham opened this issue Jul 27, 2018 · 0 comments

Comments

@jessetham
Copy link
Owner

Currently our API only handles creating one reading at a time. This should probably be improved to allow for batch creations since that would decrease the amount of HTTP requests that the sensor would have to do.

One possible implementation is detailed here. Instead of creating a new resource location though we can just return the locations of each newly created reading in the body. The /batches endpoint should be enough to self-document the difference between whether or not the Location header will be there or not.

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