mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
update tests
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
# The response will be shown in the right panel
|
# The response will be shown in the right panel
|
||||||
|
|
||||||
# @host = http://ems-esp.local
|
# @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_dev = http://10.10.10.175
|
||||||
@host_standalone = http://localhost:3080
|
@host_standalone = http://localhost:3080
|
||||||
@host_standalone2 = http://localhost:3082
|
@host_standalone2 = http://localhost:3082
|
||||||
@@ -89,11 +89,59 @@ Authorization: Bearer {{token}}
|
|||||||
GET {{host}}/api/custom/test_custom
|
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
|
GET {{host_dev}}/api/system/info
|
||||||
|
|
||||||
###
|
###
|
||||||
|
|||||||
Reference in New Issue
Block a user