Updated API (markdown)

master
Hunter Long 2018-09-12 13:16:18 -07:00
parent be4f3cb1fd
commit e49cb428dd
1 changed files with 41 additions and 0 deletions

41
API.md

@ -105,3 +105,44 @@ Response:
"method": "delete"
}
```
# Service Response
```json
{
"id": 8,
"name": "Test Service 0",
"domain": "https://status.coinapp.io",
"expected": "",
"expected_status": 200,
"check_interval": 1,
"type": "http",
"method": "GET",
"post_data": "",
"port": 0,
"timeout": 30,
"order_id": 0,
"created_at": "2018-09-12T09:07:03.045832088-07:00",
"updated_at": "2018-09-12T09:07:03.046114305-07:00",
"online": false,
"latency": 0.031411064,
"24_hours_online": 0,
"avg_response": "",
"status_code": 502,
"last_online": "0001-01-01T00:00:00Z",
"dns_lookup_time": 0.001727175,
"failures": [
{
"id": 5187,
"issue": "HTTP Status Code 502 did not match 200",
"service_id": 8,
"created_at": "2018-09-12T10:41:46.292277471-07:00"
},
{
"id": 5188,
"issue": "HTTP Status Code 502 did not match 200",
"service_id": 8,
"created_at": "2018-09-12T10:41:47.337659862-07:00"
}
]
}
```