Create New Service Add

master
Hakan Çelik 2019-11-28 04:57:57 +03:00
parent abf14b1a94
commit 98b137ffa2
1 changed files with 24 additions and 0 deletions

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
- Endpoint: `/api/services/{id}`
- Method: `DELETE`