Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(sensors): adds fetch_one sensor endpoint to API Signed-off-by: GustaafL <guus@seita.nl> * feat(sensors): adds post sensor to API Signed-off-by: GustaafL <guus@seita.nl> * post sensor still needs work Signed-off-by: GustaafL <guus@seita.nl> * feat(sensor): adds post sensor Signed-off-by: GustaafL <guus@seita.nl> * docs(sensor): changes the docstring of the post function Signed-off-by: GustaafL <guus@seita.nl> * clearer names for the arguments to permission_required_for_context decorator, especially arg_loader was misleading Signed-off-by: Nicolas Höning <nicolas@seita.nl> * one more renaming Signed-off-by: Nicolas Höning <nicolas@seita.nl> * expanding possibilities in the require_permission_for_context decorator, for when we only have an AuthModelMixin ID. Signed-off-by: Nicolas Höning <nicolas@seita.nl> * feat(sensor): post sensor without schema changes Signed-off-by: GustaafL <guus@seita.nl> * feat(sensor): adds patch sensor Signed-off-by: GustaafL <guus@seita.nl> * feat(sensor): change importin users services Signed-off-by: GustaafL <guus@seita.nl> * docs(sensor): update changelogs and fix import Signed-off-by: GustaafL <guus@seita.nl> * feat(sensor): update failing test Signed-off-by: GustaafL <guus@seita.nl> * feat(sensor): tests for patching excluded attributes and no auth Signed-off-by: GustaafL <guus@seita.nl> * feat(sensor): remove NewDurationField since it's unused Signed-off-by: GustaafL <guus@seita.nl> * feat(sensor): removes print statement Signed-off-by: GustaafL <guus@seita.nl> * feat(sensor): test if database changed after patch Signed-off-by: GustaafL <guus@seita.nl> * feat(sensor): tests for patch response json Signed-off-by: GustaafL <guus@seita.nl> * docs(sensor): updates docstrings patch sensor Signed-off-by: GustaafL <guus@seita.nl> * tests(sensor): test for updating fields that are not allowed and improved docs Signed-off-by: GustaafL <guus@seita.nl> * docs(sensor): updated api changelog typo Signed-off-by: GustaafL <guus@seita.nl> * feat(sensor): add id field(dump_only) to schema and response json Signed-off-by: GustaafL <guus@seita.nl> * docs(sensor): edit docstrings to include id in example response Signed-off-by: GustaafL <guus@seita.nl> * 433 delete sensor (#784) * feat(sensor): adds delete sensor endpoint Signed-off-by: GustaafL <guus@seita.nl> * docs(sensor): updated api changelog Signed-off-by: GustaafL <guus@seita.nl> * docs(sensor): updated api changelog whitespace Signed-off-by: GustaafL <guus@seita.nl> * docs(sensor): updated api changelog missing / Signed-off-by: GustaafL <guus@seita.nl> * docs(sensor): update changelog Signed-off-by: GustaafL <guus@seita.nl> * docs(sensor): update changelog typo Signed-off-by: GustaafL <guus@seita.nl> * docs(sensor): update changelog missing space Signed-off-by: GustaafL <guus@seita.nl> * tests(sensor): check for float instead of exact value Signed-off-by: GustaafL <guus@seita.nl> --------- Signed-off-by: GustaafL <guus@seita.nl> Signed-off-by: GustaafL <41048720+GustaafL@users.noreply.github.com> --------- Signed-off-by: GustaafL <guus@seita.nl> Signed-off-by: Nicolas Höning <nicolas@seita.nl> Signed-off-by: GustaafL <41048720+GustaafL@users.noreply.github.com> Co-authored-by: Nicolas Höning <nicolas@seita.nl>
- Loading branch information
Showing
5 changed files
with
205 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters