|
@ -46,6 +46,10 @@ in your account.</p> |
|
|
<td><a href="#list-channels">Get a list of existing integrations</a></td> |
|
|
<td><a href="#list-channels">Get a list of existing integrations</a></td> |
|
|
<td><code>GET SITE_ROOT/api/v1/channels/</code></td> |
|
|
<td><code>GET SITE_ROOT/api/v1/channels/</code></td> |
|
|
</tr> |
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td><a href="#list-badges">Get project's badges</a></td> |
|
|
|
|
|
<td><code>GET SITE_ROOT/api/v1/badges/</code></td> |
|
|
|
|
|
</tr> |
|
|
</tbody> |
|
|
</tbody> |
|
|
</table> |
|
|
</table> |
|
|
<h2>Authentication</h2> |
|
|
<h2>Authentication</h2> |
|
@ -63,6 +67,7 @@ and read-only API keys on the <strong>Project Settings</strong> page.</p> |
|
|
<li><a href="#list-checks">Get a list of existing checks</a></li> |
|
|
<li><a href="#list-checks">Get a list of existing checks</a></li> |
|
|
<li><a href="#get-check">Get a single check</a></li> |
|
|
<li><a href="#get-check">Get a single check</a></li> |
|
|
<li><a href="#list-flips">Get a list of check's status changes</a></li> |
|
|
<li><a href="#list-flips">Get a list of check's status changes</a></li> |
|
|
|
|
|
<li><a href="#list-badges">Get project's badges</a></li> |
|
|
</ul> |
|
|
</ul> |
|
|
<p>Omits sensitive information from the API responses. See the documentation of |
|
|
<p>Omits sensitive information from the API responses. See the documentation of |
|
|
individual API endpoints for details.</p> |
|
|
individual API endpoints for details.</p> |
|
@ -807,4 +812,57 @@ number of returned pings depends on the account's billing plan: 100 for free acc |
|
|
<span class="p">}</span> |
|
|
<span class="p">}</span> |
|
|
<span class="p">]</span> |
|
|
<span class="p">]</span> |
|
|
<span class="p">}</span> |
|
|
<span class="p">}</span> |
|
|
|
|
|
</code></pre></div> |
|
|
|
|
|
|
|
|
|
|
|
<h2 class="rule" id="list-badges">Get Project's Badges</h2> |
|
|
|
|
|
<p><code>GET SITE_ROOT/api/v1/badges/</code></p> |
|
|
|
|
|
<p>Returns a map of all tags in the project, with badge URLs for each tag.</p> |
|
|
|
|
|
<h3>Response Codes</h3> |
|
|
|
|
|
<dl> |
|
|
|
|
|
<dt>200 OK</dt> |
|
|
|
|
|
<dd>The request succeeded.</dd> |
|
|
|
|
|
<dt>401 Unauthorized</dt> |
|
|
|
|
|
<dd>The API key is either missing or invalid.</dd> |
|
|
|
|
|
</dl> |
|
|
|
|
|
<h3>Example Request</h3> |
|
|
|
|
|
<div class="highlight"><pre><span></span><code>curl --header <span class="s2">"X-Api-Key: your-api-key"</span> SITE_ROOT/api/v1/badges/ |
|
|
|
|
|
</code></pre></div> |
|
|
|
|
|
|
|
|
|
|
|
<h3>Example Response</h3> |
|
|
|
|
|
<div class="highlight"><pre><span></span><code><span class="p">{</span> |
|
|
|
|
|
<span class="nt">"badges"</span><span class="p">:</span> <span class="p">{</span> |
|
|
|
|
|
<span class="nt">"backup"</span><span class="p">:</span> <span class="p">{</span> |
|
|
|
|
|
<span class="nt">"svg"</span><span class="p">:</span> <span class="s2">"SITE_ROOT/badge/67541b37-8b9c-4d17-b952-690eae/LOegDs5M-2/backup.svg"</span><span class="p">,</span> |
|
|
|
|
|
<span class="nt">"svg3"</span><span class="p">:</span> <span class="s2">"SITE_ROOT/badge/67541b37-8b9c-4d17-b952-690eae/LOegDs5M/backup.svg"</span><span class="p">,</span> |
|
|
|
|
|
<span class="nt">"json"</span><span class="p">:</span> <span class="s2">"SITE_ROOT/badge/67541b37-8b9c-4d17-b952-690eae/LOegDs5M-2/backup.json"</span><span class="p">,</span> |
|
|
|
|
|
<span class="nt">"json3"</span><span class="p">:</span> <span class="s2">"SITE_ROOT/badge/67541b37-8b9c-4d17-b952-690eae/LOegDs5M/backup.json"</span><span class="p">,</span> |
|
|
|
|
|
<span class="nt">"shields"</span><span class="p">:</span> <span class="s2">"SITE_ROOT/badge/67541b37-8b9c-4d17-b952-690eae/LOegDs5M-2/backup.shields"</span><span class="p">,</span> |
|
|
|
|
|
<span class="nt">"shields3"</span><span class="p">:</span> <span class="s2">"SITE_ROOT/badge/67541b37-8b9c-4d17-b952-690eae/LOegDs5M/backup.shields"</span> |
|
|
|
|
|
<span class="p">},</span> |
|
|
|
|
|
<span class="nt">"db"</span><span class="p">:</span> <span class="p">{</span> |
|
|
|
|
|
<span class="nt">"svg"</span><span class="p">:</span> <span class="s2">"SITE_ROOT/badge/67541b37-8b9c-4d17-b952-690eae/99MuQaKm-2/db.svg"</span><span class="p">,</span> |
|
|
|
|
|
<span class="nt">"svg3"</span><span class="p">:</span> <span class="s2">"SITE_ROOT/badge/67541b37-8b9c-4d17-b952-690eae/99MuQaKm/db.svg"</span><span class="p">,</span> |
|
|
|
|
|
<span class="nt">"json"</span><span class="p">:</span> <span class="s2">"SITE_ROOT/badge/67541b37-8b9c-4d17-b952-690eae/99MuQaKm-2/db.json"</span><span class="p">,</span> |
|
|
|
|
|
<span class="nt">"json3"</span><span class="p">:</span> <span class="s2">"SITE_ROOT/badge/67541b37-8b9c-4d17-b952-690eae/99MuQaKm/db.json"</span><span class="p">,</span> |
|
|
|
|
|
<span class="nt">"shields"</span><span class="p">:</span> <span class="s2">"SITE_ROOT/badge/67541b37-8b9c-4d17-b952-690eae/99MuQaKm-2/db.shields"</span><span class="p">,</span> |
|
|
|
|
|
<span class="nt">"shields3"</span><span class="p">:</span> <span class="s2">"SITE_ROOT/badge/67541b37-8b9c-4d17-b952-690eae/99MuQaKm/db.shields"</span> |
|
|
|
|
|
<span class="p">},</span> |
|
|
|
|
|
<span class="nt">"production"</span><span class="p">:</span> <span class="p">{</span> |
|
|
|
|
|
<span class="nt">"svg"</span><span class="p">:</span> <span class="s2">"SITE_ROOT/badge/67541b37-8b9c-4d17-b952-690eae/1TEhqie8-2/production.svg"</span><span class="p">,</span> |
|
|
|
|
|
<span class="nt">"svg3"</span><span class="p">:</span> <span class="s2">"SITE_ROOT/badge/67541b37-8b9c-4d17-b952-690eae/1TEhqie8/production.svg"</span><span class="p">,</span> |
|
|
|
|
|
<span class="nt">"json"</span><span class="p">:</span> <span class="s2">"SITE_ROOT/badge/67541b37-8b9c-4d17-b952-690eae/1TEhqie8-2/production.json"</span><span class="p">,</span> |
|
|
|
|
|
<span class="nt">"json3"</span><span class="p">:</span> <span class="s2">"SITE_ROOT/badge/67541b37-8b9c-4d17-b952-690eae/1TEhqie8/production.json"</span><span class="p">,</span> |
|
|
|
|
|
<span class="nt">"shields"</span><span class="p">:</span> <span class="s2">"SITE_ROOT/badge/67541b37-8b9c-4d17-b952-690eae/1TEhqie8-2/production.shields"</span><span class="p">,</span> |
|
|
|
|
|
<span class="nt">"shields3"</span><span class="p">:</span> <span class="s2">"SITE_ROOT/badge/67541b37-8b9c-4d17-b952-690eae/1TEhqie8/production.shields"</span> |
|
|
|
|
|
<span class="p">},</span> |
|
|
|
|
|
<span class="nt">"*"</span><span class="p">:</span> <span class="p">{</span> |
|
|
|
|
|
<span class="nt">"svg"</span><span class="p">:</span> <span class="s2">"SITE_ROOT/badge/67541b37-8b9c-4d17-b952-690eae/9X7kcZoe-2.svg"</span><span class="p">,</span> |
|
|
|
|
|
<span class="nt">"svg3"</span><span class="p">:</span> <span class="s2">"SITE_ROOT/badge/67541b37-8b9c-4d17-b952-690eae/9X7kcZoe.svg"</span><span class="p">,</span> |
|
|
|
|
|
<span class="nt">"json"</span><span class="p">:</span> <span class="s2">"SITE_ROOT/badge/67541b37-8b9c-4d17-b952-690eae/9X7kcZoe-2.json"</span><span class="p">,</span> |
|
|
|
|
|
<span class="nt">"json3"</span><span class="p">:</span> <span class="s2">"SITE_ROOT/badge/67541b37-8b9c-4d17-b952-690eae/9X7kcZoe.json"</span><span class="p">,</span> |
|
|
|
|
|
<span class="nt">"shields"</span><span class="p">:</span> <span class="s2">"SITE_ROOT/badge/67541b37-8b9c-4d17-b952-690eae/9X7kcZoe-2.shields"</span><span class="p">,</span> |
|
|
|
|
|
<span class="nt">"shields3"</span><span class="p">:</span> <span class="s2">"SITE_ROOT/badge/67541b37-8b9c-4d17-b952-690eae/9X7kcZoe.shields"</span> |
|
|
|
|
|
<span class="p">}</span> |
|
|
|
|
|
<span class="p">}</span> |
|
|
|
|
|
<span class="p">}</span> |
|
|
</code></pre></div> |
|
|
</code></pre></div> |