Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce the "resolution" field to /sensors/data (GET) to obtain data in a given resolution. * Allow GETting resampled data Signed-off-by: F.N. Claessen <felix@seita.nl> * Add docstring comment to schema Signed-off-by: F.N. Claessen <felix@seita.nl> * Add missing type annotation Signed-off-by: F.N. Claessen <felix@seita.nl> * Validate resolution field Signed-off-by: F.N. Claessen <felix@seita.nl> * Add resolution field to schema Signed-off-by: F.N. Claessen <felix@seita.nl> * Field is optional Signed-off-by: F.N. Claessen <felix@seita.nl> * Use resampled resolution when reindexing Signed-off-by: F.N. Claessen <felix@seita.nl> * Add test for deserializing the resolution field Signed-off-by: F.N. Claessen <felix@seita.nl> * API changelog entry Signed-off-by: F.N. Claessen <felix@seita.nl> * Add resolution field to example Signed-off-by: F.N. Claessen <felix@seita.nl> * Changelog entry Signed-off-by: F.N. Claessen <felix@seita.nl> * Improve docstring Signed-off-by: F.N. Claessen <felix@seita.nl>
- Loading branch information
Showing
7 changed files
with
47 additions
and
2 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
30 changes: 30 additions & 0 deletions
30
flexmeasures/api/common/schemas/tests/test_sensor_data_schema.py
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