Skip to content

Commit

Permalink
docs(sensor): edit docstrings to include id in example response
Browse files Browse the repository at this point in the history
Signed-off-by: GustaafL <guus@seita.nl>
  • Loading branch information
GustaafL committed Aug 2, 2023
1 parent cf3f9b0 commit 3ca31cf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion flexmeasures/api/v3_0/sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,12 @@ def index(self, account: Account):
[
{
"entity_address": "ea1.2021-01.io.flexmeasures.company:fm1.42",
"event_resolution": 15,
"event_resolution": PT15M,
"generic_asset_id": 1,
"name": "Gas demand",
"timezone": "Europe/Amsterdam",
"unit": "m\u00b3/h"
"id": 2
}
]
Expand Down Expand Up @@ -520,6 +521,7 @@ def fetch_one(self, id, sensor):
"event_resolution": "PT10M",
"generic_asset_id": 4,
"timezone": "UTC",
"id": 2
}
:reqheader Authorization: The authentication token
Expand Down Expand Up @@ -574,6 +576,7 @@ def post(self, sensor_data: dict):
"event_resolution": "PT1H",
"generic_asset_id": 1,
"timezone": "UTC",
"id": 2
}
:reqheader Authorization: The authentication token
Expand Down Expand Up @@ -629,6 +632,7 @@ def patch(self, sensor_data: dict, id: int, db_sensor: Sensor):
"event_resolution": "PT10M",
"generic_asset_id": 4,
"timezone": "UTC",
"id": 2
}
:reqheader Authorization: The authentication token
Expand Down

0 comments on commit 3ca31cf

Please sign in to comment.