Add /api/discovery_info REST API docs

This commit is contained in:
Robbie Trencheny 2016-05-09 14:50:04 -07:00
parent b8a178f524
commit 7b58205a38

View File

@ -99,6 +99,24 @@ Sample `curl` command:
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" http://localhost:8123/api/config
```
#### {% linkable_title GET /api/discovery_info %}
Returns basic information about the Home Assistant instance as JSON.
```json
{
"base_url": "http://127.0.0.1:8123",
"location_name": "Home",
"requires_api_password": true,
"version": "0.20.0.dev0"
}
```
Sample `curl` command:
```bash
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" http://localhost:8123/api/discovery_info
```
#### {% linkable_title GET /api/bootstrap %}
Returns all data needed to bootstrap Home Assistant.