{"info":{"_postman_id":"0ad844e4-6867-424d-9635-3d524b022741","name":"Medify-backend","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"15506921","collectionId":"0ad844e4-6867-424d-9635-3d524b022741","publishedId":"U16dSU8E","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-09-01T13:27:13.000Z"},"item":[{"name":"Users","item":[{"name":"User Registration","id":"ff7f649d-e8fb-49d6-a298-25260ed80493","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"first_name\":\"John\",\n    \"last_name\":\"Doe\",\n    \"email\":\"johndoe@email.com\",\n    \"phone\":\"1243413265123\",\n    \"password\":\"123456\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3005/api/users/register","urlObject":{"port":"3005","path":["api","users","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ff7f649d-e8fb-49d6-a298-25260ed80493"},{"name":"User Login","id":"0644570b-6d61-4421-bb10-e867e0346e89","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"johndoe@email.com\",\n    \"password\":\"123456\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3005/api/users/login","urlObject":{"port":"3005","path":["api","users","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"0644570b-6d61-4421-bb10-e867e0346e89"},{"name":"More details","id":"ccbfa74b-9426-43e8-bcba-ad8503ec7a75","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer [token]","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"sex\":\"male\",\n    \"dateofBirth\":36872687236,\n    \"diseases\":[]\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3005/api/users/userdetails","urlObject":{"port":"3005","path":["api","users","userdetails"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ccbfa74b-9426-43e8-bcba-ad8503ec7a75"},{"name":"Verify User Token","id":"220e960d-8b96-455c-83f7-6e9691e4deb5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InNvdW15YWppdGRhdHRhMTIzQGdtYWlsLmNvbSIsInVzZXJfaWQiOiI2MTJmMjczYTNlNjgyMTE1ZGFmNTQ3OTUiLCJpYXQiOjE2MzA0OTkxOTQsImV4cCI6MTYzMzA5MTE5NH0.kSY9WhyyTEc4-iuvWcolkcr7yh2Vc771S_SXsgqzwpA","type":"text"}],"url":"localhost:3005/api/users/verifytoken","urlObject":{"port":"3005","path":["api","users","verifytoken"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"220e960d-8b96-455c-83f7-6e9691e4deb5"}],"id":"a6f74728-b7fc-4476-9211-c0ff648d02a0","_postman_id":"a6f74728-b7fc-4476-9211-c0ff648d02a0","description":""},{"name":"Routine","item":[{"name":"Edit a routine","id":"39dfc520-9ba0-4496-922e-139f83b32c90","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer [token]","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"medicineName\":\"Paracetamol\",\n    \"medicineType\":\"tablet\",\n    \"medicineDosage\":\"1\",\n    \"medicineDosageUnit\":\"tablets\",\n    \"medicineFrequency\":\"3\",\n    \"medicineFrequencyUnit\":\"day\",\n    \"medicineStartTime\":\"2343243242\",\n    \"medicineEndTime\":\"23423648234\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3005/api/routines/61323f1931d8eab54eef232a","urlObject":{"port":"3005","path":["api","routines","61323f1931d8eab54eef232a"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"39dfc520-9ba0-4496-922e-139f83b32c90"},{"name":"Delete a routine","id":"54a70aed-3d47-42d0-a14c-71ed9f984cca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer [token]","type":"text"}],"url":"localhost:3005/api/routines/61323f1931d8eab54eef232a","urlObject":{"port":"3005","path":["api","routines","61323f1931d8eab54eef232a"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"54a70aed-3d47-42d0-a14c-71ed9f984cca"},{"name":"Fetch a routine","id":"f2a6e2a8-057e-4b95-ab8a-86077bfb6ee2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer [token]","type":"text"}],"url":"localhost:3005/api/routines/61323f1931d8eab54eef232a","urlObject":{"port":"3005","path":["api","routines","61323f1931d8eab54eef232a"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"f2a6e2a8-057e-4b95-ab8a-86077bfb6ee2"},{"name":"Create a new routine","id":"e36897a5-1cdd-4a28-b893-e4152e3e060a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer [token]","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"medicineName\":\"Paracetamol\",\n    \"medicineType\":\"tablet\",\n    \"medicineDosage\":\"1\",\n    \"medicineDosageUnit\":\"tablets\",\n    \"medicineFrequency\":\"3\",\n    \"medicineFrequencyUnit\":\"day\",\n    \"medicineStartTime\":\"2343243242\",\n    \"medicineEndTime\":\"23423648234\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3005/api/routines/create","urlObject":{"port":"3005","path":["api","routines","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e36897a5-1cdd-4a28-b893-e4152e3e060a"},{"name":"Get routine for user","id":"66b3f1f6-a2de-4c20-974f-f7d73becedfe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer [token]","type":"text"}],"url":"localhost:3005/api/routines/","urlObject":{"port":"3005","path":["api","routines",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"66b3f1f6-a2de-4c20-974f-f7d73becedfe"}],"id":"e22d5fe0-d7d9-4c5b-b2f0-d16b7f4334c1","_postman_id":"e22d5fe0-d7d9-4c5b-b2f0-d16b7f4334c1","description":""},{"name":"Test Index","id":"5cedf6c2-cc3b-466b-88c9-4188253f6176","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:3005/","urlObject":{"port":"3005","path":[""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5cedf6c2-cc3b-466b-88c9-4188253f6176"}]}