{"info":{"_postman_id":"fc4c2162-074e-48e4-a2fd-8200b883463a","name":"Checks","description":"<html><head></head><body><p>This Collection is For the Crud operations of url Checks of the Authenticated user.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"25931255","collectionId":"fc4c2162-074e-48e4-a2fd-8200b883463a","publishedId":"2s9Xxwxa4B","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-08-03T21:52:17.000Z"},"item":[{"name":"All User Checks","id":"03f2c2d4-1c7d-4431-bafd-68bbe3030a8c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{localhost}}/api/checks","description":"<p>This endpoint returns all the url checks that was created by the <strong>authenticated</strong> user.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fc4c2162-074e-48e4-a2fd-8200b883463a","id":"fc4c2162-074e-48e4-a2fd-8200b883463a","name":"Checks","type":"collection"}},"urlObject":{"path":["api","checks"],"host":["{{localhost}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"03f2c2d4-1c7d-4431-bafd-68bbe3030a8c"},{"name":"Get Check","id":"e69782b2-d619-4bb3-a5b8-bd766bbe1700","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{localhost}}/api/checks/64cc1a55f4536409f69089e1","description":"<p>This endpoint get a certain url check by its id but the check has to be created by the authenticated user.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fc4c2162-074e-48e4-a2fd-8200b883463a","id":"fc4c2162-074e-48e4-a2fd-8200b883463a","name":"Checks","type":"collection"}},"urlObject":{"path":["api","checks","64cc1a55f4536409f69089e1"],"host":["{{localhost}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e69782b2-d619-4bb3-a5b8-bd766bbe1700"},{"name":"Create Check","id":"6ca89add-2291-47fe-9904-412bec9f7d59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"google\",\r\n    \"url\":\"www.google.com\",\r\n    \"protocol\":\"https\",\r\n    // \"path\":\"/end\",\r\n    \"interval\":1,\r\n    // \"authentication\":{\r\n    //     \"username\":\"ahmed\",\r\n    //     \"password\":\"123456\"\r\n    // },\r\n    // \"httpHeaders\": [\r\n    //     { \"key\": \"Authorization\", \"value\": \"Bearer your_token\" },\r\n    //     { \"key\": \"X-Custom-Header\" ,\"value\":\"Custom Value\"}\r\n    // ],    \r\n    // \"assert\": {\r\n    //     \"statusCode\": 277\r\n    // },\r\n    \"tags\":[\"production\",\"social media\"]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{localhost}}/api/checks","description":"<p>This endpoint is for user to create a new url check to be monitored</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fc4c2162-074e-48e4-a2fd-8200b883463a","id":"fc4c2162-074e-48e4-a2fd-8200b883463a","name":"Checks","type":"collection"}},"urlObject":{"path":["api","checks"],"host":["{{localhost}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6ca89add-2291-47fe-9904-412bec9f7d59"},{"name":"Update Check","id":"ac622138-032a-4e3a-ab4b-4988108a45a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"Google Check\"\r\n    // \"authentication\": {\r\n    //         \"username\": \"Asayed\",\r\n    //         \"password\":\"1234\"\r\n    //     },\r\n    // \"assert\":{\r\n    //     \"statusCode\":200\r\n    // },\r\n    // \"tags\":[\"Ahla\"]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{localhost}}/api/checks/64cc1a55f4536409f69089e1","description":"<p>this endpoint is for updating a url check which its (_id) is passed in the param. But the check has to be created by the authenticated user.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fc4c2162-074e-48e4-a2fd-8200b883463a","id":"fc4c2162-074e-48e4-a2fd-8200b883463a","name":"Checks","type":"collection"}},"urlObject":{"path":["api","checks","64cc1a55f4536409f69089e1"],"host":["{{localhost}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ac622138-032a-4e3a-ab4b-4988108a45a7"},{"name":"Delete Check","id":"0f821d4f-b646-4f65-aef0-0d057aafe052","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{localhost}}/api/checks/64cc1a55f4536409f69089e2","description":"<p>this endpoint is for deleting a url check which its (_id) is passed in the param. But the check has to be created by the authenticated user. the report associated with this check will be deleted also.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"fc4c2162-074e-48e4-a2fd-8200b883463a","id":"fc4c2162-074e-48e4-a2fd-8200b883463a","name":"Checks","type":"collection"}},"urlObject":{"path":["api","checks","64cc1a55f4536409f69089e2"],"host":["{{localhost}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0f821d4f-b646-4f65-aef0-0d057aafe052"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]}},"event":[{"listen":"prerequest","script":{"id":"2c4e08c9-e160-49b8-93d4-4399a253c8ea","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a4ec1108-a3eb-42de-85fb-8b091e2ec69b","type":"text/javascript","exec":[""]}}]}