Remove old security layer (#306)

* Remove old security layer

* remove unneded libs

* Update diagram
This commit is contained in:
Pascal Vizeli
2018-01-10 22:27:47 +01:00
committed by GitHub
parent 15a4541595
commit db8aaecdbe
11 changed files with 11 additions and 229 deletions

45
API.md
View File

@@ -4,7 +4,7 @@
Interface for Home Assistant to control things from supervisor.
On error:
On error / Code 400:
```json
{
@@ -13,7 +13,7 @@ On error:
}
```
On success:
On success / Code 200:
```json
{
@@ -22,6 +22,8 @@ On success:
}
```
For access to API you need set the `X-HASSIO-KEY` they will be available for Add-ons/HomeAssistant with envoriment `HASSIO_TOKEN`.
### Hass.io
- GET `/supervisor/ping`
@@ -99,44 +101,7 @@ Output is the raw docker log.
}
```
### Security
- GET `/security/info`
```json
{
"initialize": "bool",
"totp": "bool"
}
```
- POST `/security/options`
```json
{
"password": "xy"
}
```
- POST `/security/totp`
```json
{
"password": "xy"
}
```
Return QR-Code
- POST `/security/session`
```json
{
"password": "xy",
"totp": "null|123456"
}
```
### Backup/Snapshot
### Snapshot
- GET `/snapshots`