{"info":{"_postman_id":"ed6b4a68-3882-4f8d-ae3d-698312753392","name":"KompleteCare Test API","description":"<html><head></head><body><p>Endpoints for KompleteCare Test API</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"11249916","collectionId":"ed6b4a68-3882-4f8d-ae3d-698312753392","publishedId":"Uz5CLxxV","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-05-30T02:09:17.000Z"},"item":[{"name":"Login","event":[{"listen":"test","script":{"id":"a9e89f95-6337-48c3-823d-c37a55e5c6a0","exec":["pm.test(\"Successful POST request\", function () {","    //pm.expect(pm.response.code).to.be.oneOf([201, 202]);","    pm.collectionVariables.set('access_token', pm.response.json().data.token);","});",""],"type":"text/javascript"}}],"id":"4734b64f-9ace-498d-b251-293fb83864dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"tester@kompletecare.com","type":"text"},{"key":"password","value":"password","type":"text"}]},"url":"https://testdrive.kompletecare.com/api/login","urlObject":{"path":["login"],"host":["https://testdrive.kompletecare.com/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"4734b64f-9ace-498d-b251-293fb83864dd"},{"name":"Retrieve Data","id":"d926f0e7-07c4-4f62-989f-5fd789888864","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"https://testdrive.kompletecare.com/api/investigations","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"1|ymlsh0vXHWweVtm6hsRwWlvcRYOkqVWLZJaxqNVx"}]},"isInherited":true,"source":{"_postman_id":"ed6b4a68-3882-4f8d-ae3d-698312753392","id":"ed6b4a68-3882-4f8d-ae3d-698312753392","name":"KompleteCare Test API","type":"collection"}},"urlObject":{"path":["investigations"],"host":["https://testdrive.kompletecare.com/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"d926f0e7-07c4-4f62-989f-5fd789888864"},{"name":"Create Medical Record","id":"7ff6fc9d-cda3-498d-ae29-372416ff010e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"patient","value":"3","type":"text","disabled":true},{"key":"investigations[0]","value":"2","type":"text"},{"key":"investigations[1]","value":"3","type":"text"},{"key":"investigations[2]","value":"4","type":"text"},{"key":"investigations[3]","value":"6","type":"text","disabled":true},{"key":"investigations[4]","value":"8","type":"text","disabled":true},{"key":"investigations[5]","value":"9","type":"text"},{"key":"investigations[6]","value":"12","type":"text"},{"key":"ctscan","value":"Scan needed in the left cerebral hemisphere","type":"text"},{"key":"mri","value":"Full body MRI","type":"text"},{"key":"developer","value":"Developer","type":"text"}]},"url":"https://testdrive.kompletecare.com/api/investigations","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"1|ymlsh0vXHWweVtm6hsRwWlvcRYOkqVWLZJaxqNVx"}]},"isInherited":true,"source":{"_postman_id":"ed6b4a68-3882-4f8d-ae3d-698312753392","id":"ed6b4a68-3882-4f8d-ae3d-698312753392","name":"KompleteCare Test API","type":"collection"}},"urlObject":{"path":["investigations"],"host":["https://testdrive.kompletecare.com/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"7ff6fc9d-cda3-498d-ae29-372416ff010e"},{"name":"Graphql Login","event":[{"listen":"test","script":{"id":"2383cc64-9053-4cbd-a6f3-4453d1a04064","exec":["pm.test(\"Successful POST request\", function () {","    //pm.expect(pm.response.code).to.be.oneOf([201, 202]);","    pm.collectionVariables.set('access_token', pm.response.json().data.login);","});",""],"type":"text/javascript"}}],"id":"3a08490c-1298-4777-a1cf-ce93d6a73406","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation {\n  login(email:\"tester@kompletecare.com\", password:\"password\")\n}","variables":""}},"url":"https://testdrive.kompletecare.com/graphql","urlObject":{"host":["https://testdrive.kompletecare.com/graphql"],"query":[],"variable":[]}},"response":[],"_postman_id":"3a08490c-1298-4777-a1cf-ce93d6a73406"},{"name":"Graphql Retrieve Data","id":"a2ff283c-4800-4203-a5a1-39339dd97892","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"{\n  investigations {\n    id\n    title\n    type {\n      id\n      title\n    }\n  }\n}","variables":""}},"url":"https://testdrive.kompletecare.com/graphql","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"1|ymlsh0vXHWweVtm6hsRwWlvcRYOkqVWLZJaxqNVx"}]},"isInherited":true,"source":{"_postman_id":"ed6b4a68-3882-4f8d-ae3d-698312753392","id":"ed6b4a68-3882-4f8d-ae3d-698312753392","name":"KompleteCare Test API","type":"collection"}},"urlObject":{"host":["https://testdrive.kompletecare.com/graphql"],"query":[],"variable":[]}},"response":[],"_postman_id":"a2ff283c-4800-4203-a5a1-39339dd97892"},{"name":"Graphql Create Medical Record","id":"3508d173-5511-4759-aa9f-fb6705045c39","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation {\n  add_medical_record(\n    investigations: [8,9,5]\n    ctscan: \"Scan needed in the left cerebral hemisphere\"\n    mri: \"Full body MRI\"\n    developer: \"Developer\"\n  ) {\n    id\n    patient {\n        id\n        name\n        email\n    }\n    investigations { id title type { id title } }\n    ctscan\n    mri\n    created_at\n  }\n}","variables":""}},"url":"https://testdrive.kompletecare.com/graphql","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"1|ymlsh0vXHWweVtm6hsRwWlvcRYOkqVWLZJaxqNVx"}]},"isInherited":true,"source":{"_postman_id":"ed6b4a68-3882-4f8d-ae3d-698312753392","id":"ed6b4a68-3882-4f8d-ae3d-698312753392","name":"KompleteCare Test API","type":"collection"}},"urlObject":{"host":["https://testdrive.kompletecare.com/graphql"],"query":[],"variable":[]}},"response":[],"_postman_id":"3508d173-5511-4759-aa9f-fb6705045c39"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"1|ymlsh0vXHWweVtm6hsRwWlvcRYOkqVWLZJaxqNVx"}]}},"event":[{"listen":"prerequest","script":{"id":"fcac234f-9feb-4183-a5e3-9ad545a51e8f","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"27384ffe-5936-467e-8b00-68993b2b263b","type":"text/javascript","exec":[""]}}],"variable":[{"key":"access_token","value":"1|ymlsh0vXHWweVtm6hsRwWlvcRYOkqVWLZJaxqNVx"},{"key":"api_url","value":"http://localhost:8000/api"},{"key":"graphql_url","value":"http://localhost:8000/graphql"},{"key":"api_url","value":"https://testdrive.kompletecare.com/api"},{"key":"graphql_url","value":"https://testdrive.kompletecare.com/graphql"}]}