mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Add /api/discovery_info REST API docs
This commit is contained in:
parent
b8a178f524
commit
7b58205a38
@ -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.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user