From 974f738443480b0c12cb66e3413738f06d125c49 Mon Sep 17 00:00:00 2001 From: nhoening Date: Fri, 9 Apr 2021 10:59:31 +0000 Subject: [PATCH 1/2] Create draft PR for #94 From 92311bc59c3d2eff3787c3c2a093f87266605c74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20H=C3=B6ning?= Date: Fri, 9 Apr 2021 13:04:46 +0200 Subject: [PATCH 2/2] fix v2_0.postMeterData endpoint --- documentation/changelog.rst | 8 ++++++++ flexmeasures/api/v2_0/routes.py | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/documentation/changelog.rst b/documentation/changelog.rst index 6fba835e8..742051b87 100644 --- a/documentation/changelog.rst +++ b/documentation/changelog.rst @@ -16,6 +16,14 @@ Infrastructure / Support * Integration with `timely beliefs `_ lib: Sensor data as TimedBeliefs [see `PR #79 `_] +v0.3.1 | April 9, 2021 +=========================== + +Bugfixes +-------- +* PostMeterData endpoint was broken in API v2.0 [see `PR #95 `_] + + v0.3.0 | April 2, 2021 =========================== diff --git a/flexmeasures/api/v2_0/routes.py b/flexmeasures/api/v2_0/routes.py index f3e4c3bc1..60cc27f07 100644 --- a/flexmeasures/api/v2_0/routes.py +++ b/flexmeasures/api/v2_0/routes.py @@ -761,7 +761,7 @@ def post_meter_data(): :status 403: INVALID_SENDER :status 405: INVALID_METHOD """ - return v2_0_implementations.post_meter_data_response() + return v2_0_implementations.sensors.post_meter_data_response() @flexmeasures_api_v2_0.route("/postPrognosis", methods=["POST"])