From cff60f4ed8b03aa4b43d9d955d0aac31bdd2eafc Mon Sep 17 00:00:00 2001 From: Proddy Date: Sun, 10 Mar 2024 21:14:09 +0100 Subject: [PATCH] update API tests --- scripts/api_test.http | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/scripts/api_test.http b/scripts/api_test.http index 07d6f49c2..5af6d5b9d 100755 --- a/scripts/api_test.http +++ b/scripts/api_test.http @@ -4,7 +4,7 @@ # The response will be shown in the right panel @host = http://ems-esp.local -@host_dev = http://ems-esp2.local +@host_dev = http://10.10.10.20 @token = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwiYWRtaW4iOnRydWV9.2bHpWya2C7Q12WjNUBD6_7N3RCD7CMl-EGhyQVzFdDg @@ -95,3 +95,14 @@ Authorization: Bearer {{token}} ### GET {{host_dev}}/api/system/commands +### +POST {{host_dev}}/api/thermostat/seltemp +Content-Type: application/json +Authorization: Bearer {{token}} + +{ + "value" : 21.0 +} + +### +GET {{host_dev}}/api/thermostat/seltemp