Browse Source

Replace localhost with SITE_ROOT variable in API example

pull/60/head
Pēteris Caune 9 years ago
parent
commit
5f4cf6780a
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      templates/front/snippets/create_check_request.html
  2. +1
    -1
      templates/front/snippets/create_check_request.txt

+ 1
- 1
templates/front/snippets/create_check_request.html 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>

+ 1
- 1
templates/front/snippets/create_check_request.txt 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}'

Loading…
Cancel
Save