mirror of https://github.com/statping/statping
Create New Service Add
parent
abf14b1a94
commit
98b137ffa2
24
API.md
24
API.md
|
@ -54,6 +54,30 @@ POST Data:
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Create New Service
|
||||||
|
- Endpoint: `/api/services`
|
||||||
|
- Method: `POST`
|
||||||
|
- Response: [Service](https://github.com/hunterlong/statping/wiki/API#service-response)
|
||||||
|
- Response Type: `application/json`
|
||||||
|
- Request Type: `application/json`
|
||||||
|
|
||||||
|
POST Data:
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"name": "Create New Service",
|
||||||
|
"domain": "https://www.coogger.com",
|
||||||
|
"expected": "",
|
||||||
|
"expected_status": 200,
|
||||||
|
"check_interval": 15,
|
||||||
|
"type": "http",
|
||||||
|
"method": "GET",
|
||||||
|
"post_data": "",
|
||||||
|
"port": 0,
|
||||||
|
"timeout": 10,
|
||||||
|
"order_id": 0
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
### Deleting Service
|
### Deleting Service
|
||||||
- Endpoint: `/api/services/{id}`
|
- Endpoint: `/api/services/{id}`
|
||||||
- Method: `DELETE`
|
- Method: `DELETE`
|
||||||
|
|
Loading…
Reference in New Issue