diff --git a/.gitignore b/.gitignore index 37917b1..ed7aac2 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ tests/ docs/docker/homeassistant .env /config.yaml +*.private.env.json diff --git a/docs/api/appartment.http b/docs/api/appartment.http new file mode 100644 index 0000000..11518e0 --- /dev/null +++ b/docs/api/appartment.http @@ -0,0 +1,5 @@ +GET {{host}}/api/v1/apartment?token={{token}} + + +### +GET {{host}}/api/v1/apartment/dsDevices/status?token={{token}} \ No newline at end of file diff --git a/docs/api/devices.http b/docs/api/devices.http new file mode 100644 index 0000000..88070bc --- /dev/null +++ b/docs/api/devices.http @@ -0,0 +1 @@ +GET {{host}}/api/v1/apartment/dsDevices?token={{token}} \ No newline at end of file diff --git a/docs/api/token.http b/docs/api/token.http new file mode 100644 index 0000000..2b01b02 --- /dev/null +++ b/docs/api/token.http @@ -0,0 +1,9 @@ +GET {{host}}/json/system/login?user={{username}}&password={{password}} + +> {% + client.test("Request executed successfully", function() { + client.assert(response.status === 200, "Response status is not 200"); + }); + client.log(`Response Json: ${response.body.result.token}`) + client.global.set("token", response.body.result.token); +%} \ No newline at end of file