{"info":{"_postman_id":"6de612c0-bab2-4886-a0d0-dad409a92cb6","name":"Production Endpoints","description":"<html><head></head><body><p>This collections contains all the production endpoints, meant for interacting with the backend deployed in production.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"6334076","collectionId":"6de612c0-bab2-4886-a0d0-dad409a92cb6","publishedId":"TW6up9U1","public":true,"customColor":{"top-bar":"ffffff","right-sidebar":"021758","highlight":"00AAFE"},"publishDate":"2021-01-25T21:05:01.000Z"},"item":[{"name":"For government","item":[{"name":"Post Doctors Data","event":[{"listen":"prerequest","script":{"id":"66484173-f767-4ad5-a916-5d865ce36192","exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"id":"fa83c6b5-a129-4ffa-86de-8d9d325f02a9","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Response time is less than 2000ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(2000);","});"],"type":"text/javascript"}}],"id":"2884a129-f540-4c4e-beeb-0cb1a3967848","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"clinicName\": {{clinicName}},\n    \"doctorId\": {{doctorId}},\n    \"nationalId\": {{nationalId}},\n    \"doctorName\": {{doctorName}}\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/govt/save/clinics","description":"<p>Endpoint to be used by government officials to POST doctors data.</p>\n","urlObject":{"path":["govt","save","clinics"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2884a129-f540-4c4e-beeb-0cb1a3967848"},{"name":"To Login ","event":[{"listen":"test","script":{"id":"fb110bcd-69cc-4e9b-86b3-a9b13441ca42","exec":["pm.test(\"Successful POST request\", function () {","    // 200 - Login successful","    // 409 - Unauthorised request","    pm.expect(pm.response.code).to.be.oneOf([200,401]);","});","pm.test(\"Response time is less than 2000ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(2000);","});"],"type":"text/javascript"}}],"id":"98397d9c-91cb-4cc3-8a86-5f1802fb215e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"userId\": {{userId}},\n    \"password\": {{password}}\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/auth/login","description":"<p>To login, for govt officials, to add the doctors data to the Medalysis database.</p>\n","urlObject":{"path":["auth","login"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"98397d9c-91cb-4cc3-8a86-5f1802fb215e"}],"id":"7343cf30-252c-4e4a-9f8e-4bd7f501b885","description":"<p>This folder contains the endpoint for data to be used by the government officials in order to save the data in Medalysis Database.</p>\n","event":[{"listen":"prerequest","script":{"id":"73a0a08c-a77c-4ce2-8583-2472bfc0b466","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"5ae4893e-99bd-45ad-b34d-3c359136f957","type":"text/javascript","exec":[""]}}],"_postman_id":"7343cf30-252c-4e4a-9f8e-4bd7f501b885"},{"name":"For doctors","item":[{"name":"Get Medalysis ID","event":[{"listen":"test","script":{"id":"d301a24b-8050-4d36-8982-08c55d993521","exec":["pm.test(\"Successful GET request\", function () {","    // 200 - Id generated","    // 409 - Id was already generated, and can't be generated again","    pm.expect(pm.response.code).to.be.oneOf([200,409]);","});","pm.test(\"Response time is less than 2000ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(2000);","});"],"type":"text/javascript"}}],"id":"44948709-adf0-4358-a31e-18602119d2dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"{{baseURL}}/govt/get/id?nationalId={{nationalId_subId}}&doctorId={{doctorId_subId}}","description":"<p>For doctors, to get the Medalysis ID.</p>\n","urlObject":{"path":["govt","get","id"],"host":["{{baseURL}}"],"query":[{"key":"nationalId","value":"{{nationalId_subId}}"},{"key":"doctorId","value":"{{doctorId_subId}}"}],"variable":[]}},"response":[],"_postman_id":"44948709-adf0-4358-a31e-18602119d2dc"},{"name":"Post Patient Data","event":[{"listen":"test","script":{"id":"3f0a0904-824f-4fcd-b231-06b547c52e17","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Response time is less than 2000ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(2000);","});"],"type":"text/javascript"}}],"id":"c95465a2-eb53-4b87-9570-53b7afb9e661","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"gender\": {{gender}},\n    \"age\": {{age}},\n    \"latitude\": {{latitude}},\n    \"longitude\": {{longitude}},\n    \"symptoms\": {{symptoms}},\n    \"severity\": {{severity}},\n    \"organ\": {{organ}},\n    \"submissionId\": {{submissionId}}\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/core/save/data","description":"<p>For doctors, to post patient data to the central Medalysis Database.</p>\n","urlObject":{"path":["core","save","data"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c95465a2-eb53-4b87-9570-53b7afb9e661"}],"id":"f52677b1-7a73-44bf-b4bc-56e215ebb248","description":"<p>This folder contains the endpoint to be primarily used by doctors.</p>\n","event":[{"listen":"prerequest","script":{"id":"899a1506-72f0-4a73-95cf-5e1dc87122d3","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"2942430a-6e4d-40d1-b842-f79b60a0688e","type":"text/javascript","exec":[""]}}],"_postman_id":"f52677b1-7a73-44bf-b4bc-56e215ebb248"},{"name":"For developers/ businesses","item":[{"name":"Get complete data","event":[{"listen":"test","script":{"id":"ced94889-f25b-4ceb-a556-bb495672e43e","exec":["pm.test(\"Response time is less than 2000ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(2000);","});","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript"}}],"id":"9ffe2c43-37d8-4316-afe6-f26f85f8eee6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseURL}}/core/get/data","description":"<p>To get complete health related data.</p>\n","urlObject":{"path":["core","get","data"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9ffe2c43-37d8-4316-afe6-f26f85f8eee6"},{"name":"Get filtered data","event":[{"listen":"test","script":{"id":"33461ea0-be33-4904-825d-6a68c9058c66","exec":["pm.test(\"Response time is less than 2000ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(2000);","});","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript"}}],"id":"bcc3ed29-8aa6-49ff-ac25-af0fb81a7d46","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseURL}}/core/get/filterdata?organ={{organ_filter}}&gender={{gender_filter}}&severity={{severity_filter}}&symptoms={{symptoms_filter}}&country={{country_filter}}&year={{year_filter}}&ageFrom={{ageFrom}}&ageTo={{ageTo}}","description":"<p>To get data after applying multiple filters.</p>\n","urlObject":{"path":["core","get","filterdata"],"host":["{{baseURL}}"],"query":[{"key":"organ","value":"{{organ_filter}}"},{"key":"gender","value":"{{gender_filter}}"},{"key":"severity","value":"{{severity_filter}}"},{"key":"symptoms","value":"{{symptoms_filter}}"},{"key":"country","value":"{{country_filter}}"},{"key":"year","value":"{{year_filter}}"},{"key":"ageFrom","value":"{{ageFrom}}"},{"key":"ageTo","value":"{{ageTo}}"}],"variable":[]}},"response":[],"_postman_id":"bcc3ed29-8aa6-49ff-ac25-af0fb81a7d46"},{"name":"Get Symptoms List","event":[{"listen":"test","script":{"id":"c2a42d47-9830-46ae-a03e-c7d3be4f3f2e","exec":["pm.test(\"Response time is less than 2000ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(2000);","});","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript"}}],"id":"3c715910-bec1-4294-a974-f4bb4a1db45e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseURL}}/core/search?q={{query}}","description":"<p>To get symptoms list, for autocomplete.</p>\n","urlObject":{"path":["core","search"],"host":["{{baseURL}}"],"query":[{"key":"q","value":"{{query}}"}],"variable":[]}},"response":[],"_postman_id":"3c715910-bec1-4294-a974-f4bb4a1db45e"}],"id":"e52e496a-4fe2-4810-a783-7cd981061df0","description":"<p>This folder contains the endpoint for the developers or businesses.</p>\n","_postman_id":"e52e496a-4fe2-4810-a783-7cd981061df0"},{"name":"Open (About/Team)","item":[{"name":"Get About API","event":[{"listen":"test","script":{"id":"1b456b32-0607-426f-8ad5-9be436d83a41","exec":["pm.test(\"Response time is less than 2000ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(2000);","});","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript"}}],"id":"dfe2bd86-66b6-439c-ba65-e3e58c47ca49","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseURL}}/","description":"<p>To know about API</p>\n","urlObject":{"path":[""],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dfe2bd86-66b6-439c-ba65-e3e58c47ca49"},{"name":"Get Team Data","event":[{"listen":"test","script":{"id":"d74ed854-518e-4e77-ad54-d812884951f3","exec":["pm.test(\"Response time is less than 2000ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(2000);","});","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript"}}],"id":"77c2efd1-aac7-4948-a3e0-5e81a21f925d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseURL}}/team","description":"<p>To know about team</p>\n","urlObject":{"path":["team"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"77c2efd1-aac7-4948-a3e0-5e81a21f925d"}],"id":"33fc2bde-4121-425d-ad32-7dfb7e5555ce","description":"<p>This folder contains the end point for getting information about the project and the team behind it.</p>\n","_postman_id":"33fc2bde-4121-425d-ad32-7dfb7e5555ce"}]}