Fix store addons addon api response (#1422)

This commit is contained in:
Martin Hjelmare 2022-08-02 18:59:13 +02:00 committed by GitHub
parent f2e921c79d
commit ae713239bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -286,11 +286,11 @@ To reset customized network/audio/options, set it `null`.
<ApiEndpoint path="/addons/<addon>/options/validate" method="post"> <ApiEndpoint path="/addons/<addon>/options/validate" method="post">
Run a configuration validation against the current stored add-on configuration or payload. Run a configuration validation against the current stored add-on configuration or payload.
**Payload:** **Payload:**
Optional the raw add-on options. Optional the raw add-on options.
**Returned data:** **Returned data:**
| key | type | description | | key | type | description |
@ -1332,7 +1332,7 @@ Return information about the host.
| apparmor_version | string or null | The AppArmor version from host | | apparmor_version | string or null | The AppArmor version from host |
| boot_timestamp | int | The timestamp for the last boot in microseconds | | boot_timestamp | int | The timestamp for the last boot in microseconds |
| broadcast_llmnr | bool or null | Host is broadcasting its LLMNR hostname | | broadcast_llmnr | bool or null | Host is broadcasting its LLMNR hostname |
| broadcast_mdns | bool or null | Host is broadcasting its MulticastDNS hostname | | broadcast_mdns | bool or null | Host is broadcasting its MulticastDNS hostname |
| chassis | string or null | The chassis type | | chassis | string or null | The chassis type |
| cpe | string or null | The local CPE | | cpe | string or null | The local CPE |
| deployment | string or null | The deployment stage of the OS if any | | deployment | string or null | The deployment stage of the OS if any |
@ -1923,7 +1923,7 @@ Returns possible targets for the new data partition.
``` ```
</ApiEndpoint> </ApiEndpoint>
<ApiEndpoint path="/os/datadisk/move" method="post"> <ApiEndpoint path="/os/datadisk/move" method="post">
Move datadisk to a new location, **This will also reboot the device!** Move datadisk to a new location, **This will also reboot the device!**
@ -2222,30 +2222,38 @@ Returns information about a store add-on
```json ```json
{ {
"apparmor": false, "advanced": false,
"apparmor": "default",
"arch": ["armhf", "aarch64", "i386", "amd64"], "arch": ["armhf", "aarch64", "i386", "amd64"],
"auth_api": true, "auth_api": true,
"available": true,
"build": false,
"description": "Awesome description", "description": "Awesome description",
"detached": false, "detached": false,
"docker_api": false, "docker_api": false,
"documentation": true,
"full_access": true, "full_access": true,
"hassio_api": false, "hassio_api": false,
"hassio_role": "manager", "hassio_role": "manager",
"homeassistant_api": true, "homeassistant_api": true,
"homeassistant": "2021.2.0b0",
"host_network": false, "host_network": false,
"host_pid": false, "host_pid": false,
"icon": false, "icon": false,
"ingress": true, "ingress": true,
"installed": "1.0.0", "installed": false,
"logo": true, "logo": true,
"long_description": "lorem ipsum", "long_description": "lorem ipsum",
"name": "Awesome add-on", "name": "Awesome add-on",
"rating": 5, "rating": 5,
"repository": "https://example.com/addons", "repository": "core",
"signed": false "signed": false,
"slug": "7kshd7_awesome", "slug": "7kshd7_awesome",
"state": "started", "stage": "stable",
"version": "1.0.0", "update_available": false,
"url": "https://example.com/addons/tree/main/awesome_addon",
"version_latest": "1.0.0",
"version": "1.0.0"
} }
``` ```