Skip to content

Commit

Permalink
http test files
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetancollaud committed Dec 8, 2023
1 parent d3fff7c commit 6c89974
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ tests/
docs/docker/homeassistant
.env
/config.yaml
*.private.env.json
5 changes: 5 additions & 0 deletions docs/api/appartment.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
GET {{host}}/api/v1/apartment?token={{token}}


###
GET {{host}}/api/v1/apartment/dsDevices/status?token={{token}}
1 change: 1 addition & 0 deletions docs/api/devices.http
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GET {{host}}/api/v1/apartment/dsDevices?token={{token}}
9 changes: 9 additions & 0 deletions docs/api/token.http
Original file line number Diff line number Diff line change
@@ -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);
%}

0 comments on commit 6c89974

Please sign in to comment.