debug tests for api's

This commit is contained in:
proddy
2024-08-31 16:09:48 +02:00
parent 0753fee385
commit 9c83124424
5 changed files with 75 additions and 32 deletions

View File

@@ -4,7 +4,7 @@
# The response will be shown in the right panel
@host = http://ems-esp.local
@host_dev = http://10.10.10.173
@host_dev = http://10.10.10.175
@host_standalone = http://localhost:3080
@host_standalone2 = http://localhost:3082
@@ -84,6 +84,11 @@ GET {{host_dev}}/api/system/info
###
GET {{host_dev}}/api/system/restart
Authorization: Bearer {{token}}
###
GET {{host_dev}}/api?device=system&cmd=test&data=general
###
@@ -150,7 +155,7 @@ Content-Type: application/json
# https://developers.home-assistant.io/docs/api/rest/#post-apiservicesdomainservice
POST {{host_standalone}}/api
# HA
# HA tests
@ha = http://192.168.1.42:8123
@ha_token = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIwMzMyZjU1MjhlZmM0NGIyOTgyMjIxNThiODU1NDkyNSIsImlhdCI6MTcyMTMwNDg2NSwiZXhwIjoyMDM2NjY0ODY1fQ.Q-Y7E_i7clH3ff4Ma-OMmhZfbN7aMi_CahKwmoar