Add curl sample for template endpoint

This commit is contained in:
Fabian Affolter 2016-02-21 11:22:11 +01:00
parent 97a836c5b7
commit 1666ba7535

View File

@ -389,6 +389,14 @@ Returns the rendered template in plain text.
Paulus is at work!
```
Sample `curl` command:
```bash
$ curl -X POST -H "x-ha-access: YOUR_PASSWORD" \
-d '{"template": "It is {{ now }}!"}' \
http://localhost:8123/api/template
```
#### {% linkable_title POST /api/event_forwarding %}
Setup event forwarding to another Home Assistant instance.