diff --git a/templates/front/docs_api.html b/templates/front/docs_api.html index a5c9d39b..af5275e6 100644 --- a/templates/front/docs_api.html +++ b/templates/front/docs_api.html @@ -61,8 +61,8 @@ The response may contain a JSON document with additional data.
- Returns a list of checks. This API call takes no parameters and returns - a JSON document with all checks in user's account. + Returns a list of checks. This API call takes only optional tag querystring parameter to filter checks by their tags. + If no parameter provided it returns a JSON document with all checks in user's account.
curl --header "X-Api-Key: your-api-key" {{ SITE_ROOT }}/api/v1/checks/?tag=bar&tag=baz
+
{
+ "checks": [
+ {
+ "last_ping": null,
+ "ping_url": "{{ PING_ENDPOINT }}9d17c61f-5c4f-4cab-b517-11e6b2679ced",
+ "next_ping": null,
+ "grace": 3600,
+ "name": "Api test 2",
+ "n_pings": 0,
+ "tags": "bar baz",
+ "pause_url": "{{ SITE_ROOT }}/api/v1/checks/9d17c61f-5c4f-4cab-b517-11e6b2679ced/pause",
+ "tz": "UTC",
+ "schedule": "0/10 * * * *",
+ "status": "new",
+ "update_url": "{{ SITE_ROOT }}/api/v1/checks/9d17c61f-5c4f-4cab-b517-11e6b2679ced"
+ }
+ ]
+}
+