-
Notifications
You must be signed in to change notification settings - Fork 673
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #97 from home-assistant/dev
Release 0.43
- Loading branch information
Showing
20 changed files
with
428 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,48 +51,13 @@ The addons from `addons` are only installed one. | |
], | ||
"addons_repositories": [ | ||
"REPO_URL" | ||
], | ||
"snapshots": [ | ||
{ | ||
"slug": "SLUG", | ||
"data": "ISO", | ||
"name": "Custom name" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
- GET `/supervisor/addons` | ||
|
||
Get all available addons | ||
|
||
```json | ||
{ | ||
"addons": [ | ||
{ | ||
"name": "xy bla", | ||
"slug": "xy", | ||
"description": "description", | ||
"arch": ["armhf", "aarch64", "i386", "amd64"], | ||
"repository": "core|local|REP_ID", | ||
"version": "LAST_VERSION", | ||
"installed": "none|INSTALL_VERSION", | ||
"detached": "bool", | ||
"build": "bool", | ||
"url": "null|url" | ||
} | ||
], | ||
"repositories": [ | ||
{ | ||
"slug": "12345678", | ||
"name": "Repitory Name|unknown", | ||
"source": "URL_OF_REPOSITORY", | ||
"url": "WEBSITE|REPOSITORY", | ||
"maintainer": "BLA BLU <[email protected]>|unknown" | ||
} | ||
] | ||
} | ||
``` | ||
Get all available addons. Will be delete soon. Look to `/addons` | ||
|
||
- POST `/supervisor/update` | ||
Optional: | ||
|
@@ -157,6 +122,21 @@ Return QR-Code | |
|
||
### Backup/Snapshot | ||
|
||
- GET `/snapshots` | ||
```json | ||
{ | ||
"snapshots": [ | ||
{ | ||
"slug": "SLUG", | ||
"date": "ISO", | ||
"name": "Custom name" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
- POST `/snapshots/reload` | ||
|
||
- POST `/snapshots/new/full` | ||
```json | ||
{ | ||
|
@@ -269,7 +249,9 @@ Optional: | |
{ | ||
"version": "INSTALL_VERSION", | ||
"last_version": "LAST_VERSION", | ||
"devices": [] | ||
"devices": [""], | ||
"image": "str", | ||
"custom": "bool -> if custom image" | ||
} | ||
``` | ||
|
||
|
@@ -291,11 +273,47 @@ Output the raw docker log | |
```json | ||
{ | ||
"devices": [], | ||
"image": "Optional|null", | ||
"last_version": "Optional for custom image|null" | ||
} | ||
``` | ||
|
||
Image with `null` and last_version with `null` reset this options. | ||
|
||
### REST API addons | ||
|
||
- GET `/addons` | ||
|
||
Get all available addons | ||
|
||
```json | ||
{ | ||
"addons": [ | ||
{ | ||
"name": "xy bla", | ||
"slug": "xy", | ||
"description": "description", | ||
"arch": ["armhf", "aarch64", "i386", "amd64"], | ||
"repository": "core|local|REP_ID", | ||
"version": "LAST_VERSION", | ||
"installed": "none|INSTALL_VERSION", | ||
"detached": "bool", | ||
"build": "bool", | ||
"url": "null|url" | ||
} | ||
], | ||
"repositories": [ | ||
{ | ||
"slug": "12345678", | ||
"name": "Repitory Name|unknown", | ||
"source": "URL_OF_REPOSITORY", | ||
"url": "WEBSITE|REPOSITORY", | ||
"maintainer": "BLA BLU <[email protected]>|unknown" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
- POST `/addons/reload` | ||
|
||
- GET `/addons/{addon}/info` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.