From 98b137ffa202fa9291f6be0c89cdaf7cb5675f4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hakan=20=C3=87elik?= Date: Thu, 28 Nov 2019 04:57:57 +0300 Subject: [PATCH] Create New Service Add --- API.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/API.md b/API.md index 181b03d..2adaef9 100644 --- a/API.md +++ b/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`