{"info":{"_postman_id":"f4c62bfc-84a7-4353-aa47-687c8e6fd1d1","name":"Dr Manisha Bandishti Backend API - v1","description":"<html><head></head><body><h2 id=\"this-is-the-api-documentation-for-dr-manisha-bandishtis-backend-api\">This is the API documentation for Dr Manisha Bandishti's Backend API. </h2>\n<p>For more information, please refer to:\n<a href=\"https://github.com/SameeranB/drm_backend\">Github Repository</a></p>\n<p>Contact Support:\n Email: <a href=\"mailto:sameeranbandishti@caronexlabs.com\">sameeranbandishti@caronexlabs.com</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"8369112","collectionId":"f4c62bfc-84a7-4353-aa47-687c8e6fd1d1","publishedId":"TVKEVwYd","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-09-23T07:16:57.000Z"},"item":[{"name":"Authentication","item":[{"name":"Registration","item":[{"name":"Register Using Email","id":"e8d72040-ed32-46e8-9839-16385015fd52","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"<email>\",\n    \"password1\": \"<string>\",\n    \"password2\": \"<string>\",\n    \"first_name\": \"<string>\",\n    \"last_name\": \"<string>\"\n}"},"url":"http://localhost:8000/authentication/registration/","description":"<p>This endpoint allows users to register for the system using their Email Address</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"cdcc198c-2a73-4dc6-a48d-d31fe9902edc","id":"cdcc198c-2a73-4dc6-a48d-d31fe9902edc","name":"Authentication","type":"folder"}},"urlObject":{"path":["authentication","registration",""],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"31650eca-ffae-414f-bcde-b7bf3187c9ee","name":"response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"<email>\",\n    \"password1\": \"<string>\",\n    \"password2\": \"<string>\",\n    \"first_name\": \"<string>\",\n    \"last_name\": \"<string>\"\n}"},"url":"http://localhost:8000/authentication/registration/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"email\": \"<email>\",\n \"password1\": \"<string>\",\n \"password2\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\"\n}"}],"_postman_id":"e8d72040-ed32-46e8-9839-16385015fd52"},{"name":"Register Using Google OAuth","id":"d6e6d70a-6506-4ac3-ab4e-9cbdbc1594c5","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"access_token\": \"<string>\",\n    \"code\": \"<string>\"\n}"},"url":"http://localhost:8000/authentication/registration/oauth/google/","description":"<p>This endpoint handles social logins and signups</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"cdcc198c-2a73-4dc6-a48d-d31fe9902edc","id":"cdcc198c-2a73-4dc6-a48d-d31fe9902edc","name":"Authentication","type":"folder"}},"urlObject":{"path":["authentication","registration","oauth","google",""],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"5b4b523c-4724-4918-8118-1190db42254b","name":"response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"access_token\": \"<string>\",\n    \"code\": \"<string>\"\n}"},"url":"http://localhost:8000/authentication/registration/oauth/google/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"access_token\": \"<string>\",\n \"code\": \"<string>\"\n}"}],"_postman_id":"d6e6d70a-6506-4ac3-ab4e-9cbdbc1594c5"}],"id":"f3ec034e-709d-4673-a093-db6e0ca4b7e1","description":"<p>This is a collection of endpoints that deals with user registration</p>\n","event":[{"listen":"prerequest","script":{"id":"441eb333-dd30-4c73-95ff-07814fa746dd","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"e1905a65-aeda-49eb-a48c-b1634557c49c","type":"text/javascript","exec":[""]}}],"_postman_id":"f3ec034e-709d-4673-a093-db6e0ca4b7e1","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"cdcc198c-2a73-4dc6-a48d-d31fe9902edc","id":"cdcc198c-2a73-4dc6-a48d-d31fe9902edc","name":"Authentication","type":"folder"}}},{"name":"Login","item":[{"name":"Login","id":"5df6a599-b221-42ed-b6cc-dc010967433d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"email","value":"{{email}}","type":"text"},{"key":"password","value":"{{password}}","type":"text"}]},"url":"http://localhost:8000/authentication/login/","description":"<p>Check the credentials and return the REST Token\nif the credentials are valid and authenticated.\nCalls Django Auth login method to register User ID\nin Django session framework</p>\n<p>Accept the following POST parameters: username, password\nReturn the REST Framework Token Object's key.</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"cdcc198c-2a73-4dc6-a48d-d31fe9902edc","id":"cdcc198c-2a73-4dc6-a48d-d31fe9902edc","name":"Authentication","type":"folder"}},"urlObject":{"path":["authentication","login",""],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"f820f7cb-4e36-4de6-ba0f-d9e50a9f6507","name":"response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"<email>\",\n    \"password\": \"<string>\"\n}"},"url":"http://localhost:8000/authentication/login/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"email\": \"<email>\",\n \"password\": \"<string>\"\n}"}],"_postman_id":"5df6a599-b221-42ed-b6cc-dc010967433d"}],"id":"2f350383-49bd-4a6b-aaa8-60834633c69d","_postman_id":"2f350383-49bd-4a6b-aaa8-60834633c69d","description":"","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"cdcc198c-2a73-4dc6-a48d-d31fe9902edc","id":"cdcc198c-2a73-4dc6-a48d-d31fe9902edc","name":"Authentication","type":"folder"}}},{"name":"Logout","item":[{"name":"Logout Using GET","id":"fb68fe8e-8b6a-47e1-8f75-74685cdcef05","request":{"method":"GET","header":[],"url":"http://localhost:8000/authentication/logout/","description":"<p>Calls Django logout method and delete the Token objectassigned to the current User object.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d676166c-5108-47a4-9898-5cb1fc038171","id":"d676166c-5108-47a4-9898-5cb1fc038171","name":"Logout","type":"folder"}},"urlObject":{"path":["authentication","logout",""],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"37920b95-9ed9-4e91-a383-71fa6cafc252","name":"response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/authentication/logout/"},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"fb68fe8e-8b6a-47e1-8f75-74685cdcef05"},{"name":"Logout Using POST","id":"0c1c2364-c8e7-44f1-ac7d-60e9643c449d","request":{"method":"POST","header":[],"url":"http://localhost:8000/authentication/logout/","description":"<p>Calls Django logout method and delete the Token object assigned to the current User object.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d676166c-5108-47a4-9898-5cb1fc038171","id":"d676166c-5108-47a4-9898-5cb1fc038171","name":"Logout","type":"folder"}},"urlObject":{"path":["authentication","logout",""],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"22d237a9-b135-4b41-8962-e658169cb41a","name":"response","originalRequest":{"method":"POST","header":[],"url":"http://localhost:8000/authentication/logout/"},"status":"Created","code":201,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"0c1c2364-c8e7-44f1-ac7d-60e9643c449d"}],"id":"d676166c-5108-47a4-9898-5cb1fc038171","description":"<p>This is a collection of endpoints that allow a user or an admin to logout.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"9f914d0e-0f0e-4105-91b4-55760e6b5ce9","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"12912b31-207c-4729-ae21-d3b950022438","type":"text/javascript","exec":[""]}}],"_postman_id":"d676166c-5108-47a4-9898-5cb1fc038171"},{"name":"Password","item":[{"name":"Reset Password","id":"73c63a16-fbb1-452b-a7b8-799c4c1f6314","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"old_password\": \"<string>\",\n    \"new_password1\": \"<string>\",\n    \"new_password2\": \"<string>\"\n}"},"url":"http://localhost:8000/authentication/password/change/","description":"<p>Calls Django Auth SetPasswordForm save method.</p>\n<p>Accepts the following POST parameters: new_password1, new_password2\nReturns the success/fail message.</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"e32afa03-f2a1-489f-8e9a-14dcfe9f8d2c","id":"e32afa03-f2a1-489f-8e9a-14dcfe9f8d2c","name":"Password","type":"folder"}},"urlObject":{"path":["authentication","password","change",""],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"444678c9-9495-4458-a603-b214f3985c7e","name":"response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"old_password\": \"<string>\",\n    \"new_password1\": \"<string>\",\n    \"new_password2\": \"<string>\"\n}"},"url":"http://localhost:8000/authentication/password/change/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"old_password\": \"<string>\",\n \"new_password1\": \"<string>\",\n \"new_password2\": \"<string>\"\n}"}],"_postman_id":"73c63a16-fbb1-452b-a7b8-799c4c1f6314"},{"name":"Request Password Reset","id":"8836fc9a-c38c-464b-8456-9cabf59358e0","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"<email>\"\n}"},"url":"http://localhost:8000/authentication/password/reset/","description":"<p>Calls Django Auth PasswordResetForm save method.</p>\n<p>Accepts the following POST parameters: email\nReturns the success/fail message.</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"e32afa03-f2a1-489f-8e9a-14dcfe9f8d2c","id":"e32afa03-f2a1-489f-8e9a-14dcfe9f8d2c","name":"Password","type":"folder"}},"urlObject":{"path":["authentication","password","reset",""],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"e73993f1-057a-41d8-ba98-7b288c0fac12","name":"response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"<email>\"\n}"},"url":"http://localhost:8000/authentication/password/reset/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"email\": \"<email>\"\n}"}],"_postman_id":"8836fc9a-c38c-464b-8456-9cabf59358e0"}],"id":"e32afa03-f2a1-489f-8e9a-14dcfe9f8d2c","description":"<p>This is a collection of endpoints that deal with password reset and change.</p>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"f53b0fae-0e51-4841-a784-d6981aab7786","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"401abacc-d7ec-4a99-96ed-d20cd554a0a3","type":"text/javascript","exec":[""]}}],"_postman_id":"e32afa03-f2a1-489f-8e9a-14dcfe9f8d2c"}],"id":"cdcc198c-2a73-4dc6-a48d-d31fe9902edc","description":"<p>This is a collection of endpoints that is concerned with user and admin authentication</p>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"96a9e522-234f-4274-b713-20e6e4405056","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"bf096741-7d11-4cb7-b76c-9859dd481d23","type":"text/javascript","exec":[""]}}],"_postman_id":"cdcc198c-2a73-4dc6-a48d-d31fe9902edc"},{"name":"Users","item":[{"name":"Profile","item":[{"name":"Retrieve Profile","id":"60665372-24aa-4f6b-95a9-939c92e52079","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/user/profile/","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"a19e5020-2d2c-49b8-bb37-764b5d8e8053","id":"a19e5020-2d2c-49b8-bb37-764b5d8e8053","name":"Users","type":"folder"}},"urlObject":{"path":["user","profile",""],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"60665372-24aa-4f6b-95a9-939c92e52079"},{"name":"Update Profile","id":"e05302f6-7479-4644-9407-ae8d644ca28e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"http://localhost:8000/user/profile/","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"a19e5020-2d2c-49b8-bb37-764b5d8e8053","id":"a19e5020-2d2c-49b8-bb37-764b5d8e8053","name":"Users","type":"folder"}},"urlObject":{"path":["user","profile",""],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"e05302f6-7479-4644-9407-ae8d644ca28e"}],"id":"c0860098-9611-434f-88c0-72c69302a52e","_postman_id":"c0860098-9611-434f-88c0-72c69302a52e","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"a19e5020-2d2c-49b8-bb37-764b5d8e8053","id":"a19e5020-2d2c-49b8-bb37-764b5d8e8053","name":"Users","type":"folder"}}},{"name":"Subscriptions","item":[{"name":"List Subscriptions","id":"eac408bd-7c55-4558-8770-bd22183a85d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/user/subscriptions/","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"a19e5020-2d2c-49b8-bb37-764b5d8e8053","id":"a19e5020-2d2c-49b8-bb37-764b5d8e8053","name":"Users","type":"folder"}},"urlObject":{"path":["user","subscriptions",""],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"eac408bd-7c55-4558-8770-bd22183a85d3"},{"name":"Create Subscription","id":"8a347e60-739d-4372-afd7-1f7e0a363d65","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"sub_program","value":"1","type":"text"}]},"url":"http://localhost:8000/user/subscriptions/","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"a19e5020-2d2c-49b8-bb37-764b5d8e8053","id":"a19e5020-2d2c-49b8-bb37-764b5d8e8053","name":"Users","type":"folder"}},"urlObject":{"path":["user","subscriptions",""],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"8a347e60-739d-4372-afd7-1f7e0a363d65"},{"name":"Get Active Subscription","id":"f839c666-dce1-4e71-ab1a-6bf1d00bbe70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/user/subscriptions/active/","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"a19e5020-2d2c-49b8-bb37-764b5d8e8053","id":"a19e5020-2d2c-49b8-bb37-764b5d8e8053","name":"Users","type":"folder"}},"urlObject":{"path":["user","subscriptions","active",""],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"f839c666-dce1-4e71-ab1a-6bf1d00bbe70"}],"id":"de1e958e-d72a-4020-9a91-2e07c7ebd6e5","_postman_id":"de1e958e-d72a-4020-9a91-2e07c7ebd6e5","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"a19e5020-2d2c-49b8-bb37-764b5d8e8053","id":"a19e5020-2d2c-49b8-bb37-764b5d8e8053","name":"Users","type":"folder"}}}],"id":"a19e5020-2d2c-49b8-bb37-764b5d8e8053","description":"<p>This is a collection of endpoints that deal with user information</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"004ea75f-2716-4c1a-999c-6708de90309d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a168359c-7766-4ca9-bf81-f8411a1a1338","type":"text/javascript","exec":[""]}}],"_postman_id":"a19e5020-2d2c-49b8-bb37-764b5d8e8053"},{"name":"Program","item":[{"name":"List All Programs","id":"00bb0a45-4d4c-4624-97aa-4aec45ead312","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"00bb0a45-4d4c-4624-97aa-4aec45ead312"},{"name":"List All Sub-Programs of a given program","id":"eacebcc5-e6fc-4d59-b882-bdf0d518a4bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"eacebcc5-e6fc-4d59-b882-bdf0d518a4bd"}],"id":"e84c25eb-f92f-454d-8fa3-67c5b6535736","_postman_id":"e84c25eb-f92f-454d-8fa3-67c5b6535736","description":""}],"event":[{"listen":"prerequest","script":{"id":"bb710e31-b853-4c31-91d5-66a3731a3121","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"6be7daac-4c7f-45a2-bb8b-a1bfdfb0493a","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseUrl","value":"http://localhost:8000"}]}