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

API3 read-only documents #5186

Merged
merged 3 commits into from
Dec 6, 2019

Conversation

PetrOndrusek
Copy link
Contributor

After discussion on the #api channel, it turned out that it would be useful to be able to lock some uploaded documents. In particular, this makes sense, for example, for read CGM values or device statuses.
Now the API would be extended (including documentation) with the possibility to use the isReadOnly field, which would prevent subsequent upsert (insert/update), patch or delete operations.
Attempts to edit read-only documents would result in HTTP status 422.

@sulkaharo sulkaharo merged commit 57a3f2d into nightscout:dev Dec 6, 2019
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

Successfully merging this pull request may close these issues.

2 participants