| title | WATCH-SITE Server API v1.0 | |||
|---|---|---|---|---|
| language_tabs |
|
|||
| language_clients |
|
|||
| toc_footers | ||||
| includes | ||||
| search | false | |||
| highlight_theme | darkula | |||
| headingLevel | 2 |
Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.
RESTFUL Backend server
Base URLs:
- HTTP Authentication, scheme: bearer
Code samples
GET /health
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | None |
Code samples
POST /user/signup
Body parameter
{
"name": "string",
"email": "string",
"password": "string"
}| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | CreateUserDto | true | none |
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | none | None |
Code samples
POST /user/login
Body parameter
{
"email": "string",
"password": "string"
}| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | LoginUserDto | true | none |
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | none | None |
Code samples
GET /user/confirm
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| token | query | string | true | none |
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | None |
Code samples
GET /user/{id}
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | any | true | none |
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | None |
Code samples
POST /site
Body parameter
{
"name": "My website",
"url": "https://www.google.com",
"protocol": "http",
"path": "/health-check",
"port": 80,
"webhook": "https://mywebhook.com",
"timeout": 5000,
"interval": 5,
"threshold": 3,
"authUsername": "string",
"authPassword": "string",
"httpHeaders": [
[
"Content-Type",
"application/json"
],
[
"Authorization",
"Bearer token"
]
],
"assertCode": 0,
"tags": [
"tag1",
"tag2"
],
"ignoreSSL": true
}| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | CreateSiteDto | true | none |
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | none | None |
Code samples
GET /site
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | None |
Code samples
POST /site/search
Body parameter
{
"tags": [
"string"
]
}| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | SearchSiteReportDto | true | none |
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | none | None |
Code samples
GET /site/reports
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | None |
Code samples
GET /site/{id}/report
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | None |
Code samples
GET /site/{id}
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | None |
Code samples
PATCH /site/{id}
Body parameter
{
"name": "My website",
"url": "https://www.google.com",
"protocol": "http",
"path": "/health-check",
"port": 80,
"webhook": "https://mywebhook.com",
"timeout": 5000,
"interval": 5,
"threshold": 3,
"authUsername": "string",
"authPassword": "string",
"httpHeaders": [
[
"Content-Type",
"application/json"
],
[
"Authorization",
"Bearer token"
]
],
"assertCode": 0,
"tags": [
"tag1",
"tag2"
],
"ignoreSSL": true
}| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
| body | body | UpdateSiteDto | true | none |
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | None |
Code samples
DELETE /site/{id}
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | None |
Code samples
GET /site-report
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | None |
Code samples
GET /site-report/{id}
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | true | none |
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | None |
{
"name": "string",
"email": "string",
"password": "string"
}
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| name | string | true | none | none |
| string | true | none | none | |
| password | string | true | none | none |
{
"email": "string",
"password": "string"
}
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| string | true | none | none | |
| password | string | true | none | none |
{
"name": "My website",
"url": "https://www.google.com",
"protocol": "http",
"path": "/health-check",
"port": 80,
"webhook": "https://mywebhook.com",
"timeout": 5000,
"interval": 5,
"threshold": 3,
"authUsername": "string",
"authPassword": "string",
"httpHeaders": [
[
"Content-Type",
"application/json"
],
[
"Authorization",
"Bearer token"
]
],
"assertCode": 0,
"tags": [
"tag1",
"tag2"
],
"ignoreSSL": true
}
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| name | string | true | none | The name of the check. |
| url | string | true | none | The URL to be monitored. |
| protocol | string | true | none | The resource protocol name. |
| path | string | true | none | A specific path to be monitored. |
| port | number | true | none | The server port number. |
| webhook | string | true | none | A webhook URL to receive a notification on. |
| timeout | number | true | none | The timeout of the polling request. |
| interval | number | true | none | The time interval (minutes) for polling requests. (min: 5 mins) |
| threshold | number | true | none | The threshold of failed requests that will create an alert. |
| authUsername | string | true | none | The authentication username. |
| authPassword | string | true | none | The authentication password. |
| httpHeaders | [string] | true | none | none |
| assertCode | number | true | none | The response assertion to be used on the polling response. |
| tags | [string] | true | none | A list of the check tags. |
| ignoreSSL | boolean | true | none | A flag to ignore broken/expired SSL certificates in case of using the HTTPS protocol. |
| Property | Value |
|---|---|
| protocol | http |
| protocol | https |
| protocol | tcp |
{
"tags": [
"string"
]
}
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| tags | [string] | true | none | Tags to search for |
{
"name": "My website",
"url": "https://www.google.com",
"protocol": "http",
"path": "/health-check",
"port": 80,
"webhook": "https://mywebhook.com",
"timeout": 5000,
"interval": 5,
"threshold": 3,
"authUsername": "string",
"authPassword": "string",
"httpHeaders": [
[
"Content-Type",
"application/json"
],
[
"Authorization",
"Bearer token"
]
],
"assertCode": 0,
"tags": [
"tag1",
"tag2"
],
"ignoreSSL": true
}
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| name | string | false | none | The name of the check. |
| url | string | false | none | The URL to be monitored. |
| protocol | string | false | none | The resource protocol name. |
| path | string | false | none | A specific path to be monitored. |
| port | number | false | none | The server port number. |
| webhook | string | false | none | A webhook URL to receive a notification on. |
| timeout | number | false | none | The timeout of the polling request. |
| interval | number | false | none | The time interval (minutes) for polling requests. (min: 5 mins) |
| threshold | number | false | none | The threshold of failed requests that will create an alert. |
| authUsername | string | false | none | The authentication username. |
| authPassword | string | false | none | The authentication password. |
| httpHeaders | [string] | false | none | none |
| assertCode | number | false | none | The response assertion to be used on the polling response. |
| tags | [string] | false | none | A list of the check tags. |
| ignoreSSL | boolean | false | none | A flag to ignore broken/expired SSL certificates in case of using the HTTPS protocol. |
| Property | Value |
|---|---|
| protocol | http |
| protocol | https |
| protocol | tcp |