{ "info": { "_postman_id": "d74ac4a3-8915-46e8-8ed2-5044ea4ce53b", "name": "Statup", "description": "Statup API Requests", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "Main", "item": [ { "name": "Statup Details", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{api_key}}", "type": "string" } ] }, "method": "GET", "header": [], "body": {}, "url": { "raw": "{{endpoint}}/api", "host": [ "{{endpoint}}" ], "path": [ "api" ] } }, "response": [] } ], "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{api_key}}", "type": "string" } ] } }, { "name": "Services", "item": [ { "name": "View All Services", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{api_key}}", "type": "string" } ] }, "method": "GET", "header": [], "body": {}, "url": { "raw": "{{endpoint}}/api/services", "host": [ "{{endpoint}}" ], "path": [ "api", "services" ] } }, "response": [] }, { "name": "View Service", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{api_key}}", "type": "string" } ] }, "method": "GET", "header": [], "body": {}, "url": { "raw": "{{endpoint}}/api/services/1", "host": [ "{{endpoint}}" ], "path": [ "api", "services", "1" ] } }, "response": [] }, { "name": "Create Service", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{api_key}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"New Service\",\n \"domain\": \"https://google.com\",\n \"expected\": \"\",\n \"expected_status\": 200,\n \"check_interval\": 15,\n \"type\": \"http\",\n \"method\": \"GET\",\n \"post_data\": \"\",\n \"port\": 0,\n \"timeout\": 10,\n \"order_id\": 0\n}" }, "url": { "raw": "{{endpoint}}/api/services", "host": [ "{{endpoint}}" ], "path": [ "api", "services" ] } }, "response": [] }, { "name": "Update Service", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{api_key}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"Updated Service\",\n \"domain\": \"https://google.com\",\n \"expected\": \"\",\n \"expected_status\": 200,\n \"check_interval\": 60,\n \"type\": \"http\",\n \"method\": \"GET\",\n \"post_data\": \"\",\n \"port\": 0,\n \"timeout\": 10,\n \"order_id\": 0\n}" }, "url": { "raw": "{{endpoint}}/api/services/19", "host": [ "{{endpoint}}" ], "path": [ "api", "services", "19" ] } }, "response": [] }, { "name": "Delete Service", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{api_key}}", "type": "string" } ] }, "method": "DELETE", "header": [], "body": {}, "url": { "raw": "{{endpoint}}/api/services/1", "host": [ "{{endpoint}}" ], "path": [ "api", "services", "1" ] } }, "response": [] } ], "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{api_key}}", "type": "string" } ] }, "event": [ { "listen": "prerequest", "script": { "id": "4cd2ab82-e60d-45cd-9b74-cb4b5d893f4d", "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "id": "c7cb2b6d-289a-4073-b291-202bbec8cb44", "type": "text/javascript", "exec": [ "" ] } } ] }, { "name": "Users", "item": [ { "name": "View All Users", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{api_key}}", "type": "string" } ] }, "method": "GET", "header": [], "body": {}, "url": { "raw": "{{endpoint}}/api/users", "host": [ "{{endpoint}}" ], "path": [ "api", "users" ] } }, "response": [] }, { "name": "View User", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{api_key}}", "type": "string" } ] }, "method": "GET", "header": [], "body": {}, "url": { "raw": "{{endpoint}}/api/users/1", "host": [ "{{endpoint}}" ], "path": [ "api", "users", "1" ] } }, "response": [] }, { "name": "Create User", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{api_key}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"username\": \"admin\",\n \"email\": \"info@email.com\",\n \"password\": \"password123\",\n \"admin\": true\n}" }, "url": { "raw": "{{endpoint}}/api/users", "host": [ "{{endpoint}}" ], "path": [ "api", "users" ] } }, "response": [] }, { "name": "Update User", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{api_key}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"username\": \"adminupdated\",\n \"email\": \"info@email.com\",\n \"password\": \"password123\",\n \"admin\": true\n}" }, "url": { "raw": "{{endpoint}}/api/users/4", "host": [ "{{endpoint}}" ], "path": [ "api", "users", "4" ] } }, "response": [] }, { "name": "Delete User", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{api_key}}", "type": "string" } ] }, "method": "DELETE", "header": [], "body": {}, "url": { "raw": "{{endpoint}}/api/users/4", "host": [ "{{endpoint}}" ], "path": [ "api", "users", "4" ] } }, "response": [] } ], "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{api_key}}", "type": "string" } ] }, "event": [ { "listen": "prerequest", "script": { "id": "9720db1a-bc4c-4e05-94ea-2782aaafb793", "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "id": "c667ae2d-41f3-4dea-ab62-3b544e2bc8f9", "type": "text/javascript", "exec": [ "" ] } } ] } ] }