Replace localhost with SITE_ROOT variable in API example

This commit is contained in:
Pēteris Caune 2016-04-14 15:15:43 +03:00
parent e55650c781
commit 5f4cf6780a
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
<div class="highlight"><pre><span></span>curl http://localhost:8000/api/v1/checks/ <span class="se">\</span>
<div class="highlight"><pre><span></span>curl {{ SITE_ROOT }}/api/v1/checks/ <span class="se">\</span>
-X POST <span class="se">\</span>
-d <span class="s1">&#39;{&quot;api_key&quot;: &quot;your-api-key&quot;, &quot;name&quot;: &quot;Backups&quot;, &quot;tags&quot;: &quot;prod www&quot;, &quot;timeout&quot;: 3600, &quot;grace&quot;: 60}&#39;</span>
</pre></div>

View File

@ -1,3 +1,3 @@
curl http://localhost:8000/api/v1/checks/ \
curl SITE_ROOT/api/v1/checks/ \
-X POST \
-d '{"api_key": "your-api-key", "name": "Backups", "tags": "prod www", "timeout": 3600, "grace": 60}'