From e75bf8871e8d27c250431e5598e36b61118a1a32 Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 5 Oct 2025 15:32:00 +0200 Subject: [PATCH] update tests --- test/test_api/api_test.http | 52 +++++++++++++++++++++++++++++++++++-- 1 file changed, 50 insertions(+), 2 deletions(-) diff --git a/test/test_api/api_test.http b/test/test_api/api_test.http index ae30be6fc..08cb74bf3 100755 --- a/test/test_api/api_test.http +++ b/test/test_api/api_test.http @@ -4,7 +4,7 @@ # The response will be shown in the right panel # @host = http://ems-esp.local -@host = http://192.168.1.225 +@host = http://192.168.1.223 @host_dev = http://10.10.10.175 @host_standalone = http://localhost:3080 @host_standalone2 = http://localhost:3082 @@ -89,11 +89,59 @@ Authorization: Bearer {{token}} GET {{host}}/api/custom/test_custom # -# Test on dev +# Tests on dev # ### +POST {{host_dev}}/api/system/message +Content-Type: application/json +Authorization: Bearer {{token}} + +{ + "value" : "'hello world'" +} + +### + +POST {{host_dev}}/api/system/message +Content-Type: application/json +Authorization: Bearer {{token}} + +{ + "value" : "system/settings/locale" +} + +### + +POST {{host_dev}}/api/system/message +Content-Type: application/json +Authorization: Bearer {{token}} + +{ + "value" : "custom/test_custom" +} + +### + +POST {{host_dev}}/api/thermostat/seltemp +Content-Type: application/json +Authorization: Bearer {{token}} + +{ + "value" : 21.0 +} + +### + +GET {{host_dev}}/api/system/settings/locale/value + +### + +POST {{host_dev}}/api/system/settings/locale/value + +### + GET {{host_dev}}/api/system/info ###