From 1666ba753534258eaa9651ca13d35c6645dbbbdd Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 21 Feb 2016 11:22:11 +0100 Subject: [PATCH] Add curl sample for template endpoint --- source/developers/rest_api.markdown | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/developers/rest_api.markdown b/source/developers/rest_api.markdown index 3cce09cf727..cb70087e3de 100644 --- a/source/developers/rest_api.markdown +++ b/source/developers/rest_api.markdown @@ -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.