{"info":{"_postman_id":"7f51662e-8aa1-4513-a4be-3f4048ed070e","name":"Blood Link  API (Team - Byte Shifts)","description":"<html><head></head><body><p>BloodLink is a comprehensive web application designed for blood donation and management. It aims to provide a user-friendly platform with a wide range of features to facilitate the blood donation process and create a positive impact in the community by acting as a proper communication channel between reciever and Donor.Thus the whole blood donation process is organized.</p>\n<p>Team name:- Byte Shifts</p>\n<p>Team member details:-</p>\n<p>Sayak Dutta</p>\n<p>Sayak Ghosh</p>\n<p>Sayak Saha</p>\n<p>Rishiraj Basu</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"25150228","collectionId":"7f51662e-8aa1-4513-a4be-3f4048ed070e","publishedId":"2s946bBEu7","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-07-10T11:31:39.000Z"},"item":[{"name":"User Authorization","item":[{"name":"User Registration","id":"2036a16b-324c-43f8-8eb6-5a786a7cb02f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"email@random.com\",\r\n    \"password\": \"Random123\",\r\n    \"confirm_password\": \"Random123\",\r\n    \"adhaar_number\": \"397788000234\",\r\n    \"phone\": \"8079123564\",\r\n    \"address\": \"Jadavpur 8B Bus Stand\",\r\n    \"first_name\": \"Anmol\",\r\n    \"last_name\": \"Roy\",\r\n    \"date_of_birth\": \"2020-02-02\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://35.244.15.171:8000/accounts/register/","urlObject":{"path":["accounts","register",""],"host":["http://35.244.15.171:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"2036a16b-324c-43f8-8eb6-5a786a7cb02f"},{"name":"Verify JWT Token","id":"a4d1f826-1aab-44a6-8dc3-222a64af620d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjg4OTY2NzU5LCJpYXQiOjE2ODg5NjQzNTksImp0aSI6IjVmMjM5MmJlYjE0MDQxNzVhYzYxODNjMmRhODg2NzY0IiwidXNlcl9pZCI6M30.FfaDkRbFsWdxRgdfWB1l79S1FF9d1lIPpqR-WG-qFwU\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://35.244.15.171:8000/accounts/token/verify/","urlObject":{"path":["accounts","token","verify",""],"host":["http://35.244.15.171:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"a4d1f826-1aab-44a6-8dc3-222a64af620d"},{"name":"User Login","id":"abb8d263-f62d-4b35-b379-592b565fbca7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"email@random.com\",\r\n    \"password\": \"Random123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://35.244.15.171:8000/accounts/login/","urlObject":{"path":["accounts","login",""],"host":["http://35.244.15.171:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"abb8d263-f62d-4b35-b379-592b565fbca7"},{"name":"User Logout","id":"2f1516a4-50e3-4ab7-bcaf-16c11c8e3c03","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjg3NDUzMDkxLCJpYXQiOjE2ODc0NTA2OTEsImp0aSI6Ijk4YTUyN2IyMjFmMzQ4ZDFiOThlMDQwMWQ0NzQ1OTgzIiwidXNlcl9pZCI6N30.KxkfuHrmbpDF-QLK36gjb-kMW8q-5u0DyL83jGDQnqE","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"refresh_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTY4NzUzNzA5MSwiaWF0IjoxNjg3NDUwNjkxLCJqdGkiOiIxZGY3ZTgyMTVmOTI0ZjBkOTViNWUwY2RjZDQ3OWI4YyIsInVzZXJfaWQiOjd9.KAafNFA1yVS4ZJPKNm3TS1uMHXwMW5J-zXTcSZh1YTY\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://35.244.15.171:8000/accounts/logout/","urlObject":{"path":["accounts","logout",""],"host":["http://35.244.15.171:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"2f1516a4-50e3-4ab7-bcaf-16c11c8e3c03"},{"name":"Verify OTP","id":"e9d8126b-1cb9-47c6-be75-a4d754301ad8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"email@random.com\",\r\n    \"otp\": \"7948\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://35.244.15.171:8000/accounts/verify/","urlObject":{"path":["accounts","verify",""],"host":["http://35.244.15.171:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"e9d8126b-1cb9-47c6-be75-a4d754301ad8"}],"id":"97f0288f-8b8e-4700-8e41-9be06849900d","description":"<p>JWT Authentication by passing Bearer tokens</p>\n","_postman_id":"97f0288f-8b8e-4700-8e41-9be06849900d"},{"name":"Profile APIs","item":[{"name":"Update User Location","id":"aab9eafb-76ca-460f-902c-8afbc5369fb3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"email@random.com\",\r\n    \"longitude\": \"88.54687\",\r\n    \"latitude\": \"22.57898\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://35.244.15.171:8000/accounts/location/","urlObject":{"path":["accounts","location",""],"host":["http://35.244.15.171:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"aab9eafb-76ca-460f-902c-8afbc5369fb3"},{"name":"Get User Profile","id":"05c5fc66-a3a1-4f95-9657-e7468a6507cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://35.244.15.171:8000/accounts/profile/:user_id","urlObject":{"path":["accounts","profile",":user_id"],"host":["http://35.244.15.171:8000"],"query":[],"variable":[{"id":"0df8693b-1e4a-4878-9158-5b1777e6b0b9","type":"any","value":"3","key":"user_id"}]}},"response":[],"_postman_id":"05c5fc66-a3a1-4f95-9657-e7468a6507cb"},{"name":"Update User Profile","id":"f2eb01ef-a42a-4980-b35e-1c7bbcda5ee3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"address\": \"107 Jadavpur 8B Bus Stand\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://35.244.15.171:8000/accounts/profile/:user_id/","urlObject":{"path":["accounts","profile",":user_id",""],"host":["http://35.244.15.171:8000"],"query":[],"variable":[{"id":"5cebd278-5735-436b-9d39-dc36acc14f64","type":"any","value":"3","key":"user_id"}]}},"response":[],"_postman_id":"f2eb01ef-a42a-4980-b35e-1c7bbcda5ee3"}],"id":"23f68f3e-81e3-4847-acc6-137c73b31747","_postman_id":"23f68f3e-81e3-4847-acc6-137c73b31747","description":""},{"name":"Donor Authorization","item":[{"name":"Apply as Donor","id":"ca737a19-dd20-4d41-a316-43c4455cd25b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"user_id\": 2,\r\n    \"blood_group\": \"A+\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://35.244.15.171:8000/donor/apply/","urlObject":{"path":["donor","apply",""],"host":["http://35.244.15.171:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"ca737a19-dd20-4d41-a316-43c4455cd25b"}],"id":"f03c7b98-86c1-4757-beca-f4a37f97ddbc","_postman_id":"f03c7b98-86c1-4757-beca-f4a37f97ddbc","description":""},{"name":"Donor Profile","item":[{"name":"Donor Profile","id":"1544e4ad-d694-48d3-9a85-b2dc51385ce9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://35.244.15.171:8000/donor/profile/:donor_id","urlObject":{"path":["donor","profile",":donor_id"],"host":["http://35.244.15.171:8000"],"query":[],"variable":[{"id":"068eb7b3-b6e8-4c55-92ee-e8de4021d08d","type":"any","value":"2","key":"donor_id"}]}},"response":[],"_postman_id":"1544e4ad-d694-48d3-9a85-b2dc51385ce9"},{"name":"Update Donor Profile","id":"d33d4cb2-0cb4-424d-ad90-17b72feb2a7f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"blood_group\": \"A+\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://35.244.15.171:8000/donor/profile/:donor_id","urlObject":{"path":["donor","profile",":donor_id"],"host":["http://35.244.15.171:8000"],"query":[],"variable":[{"id":"9b90dd5e-4492-4753-93fe-e4a7a790ce2c","type":"any","value":null,"key":"donor_id"}]}},"response":[],"_postman_id":"d33d4cb2-0cb4-424d-ad90-17b72feb2a7f"}],"id":"e65ea1cd-8ae9-41b1-99dd-fc29f25ac6cf","_postman_id":"e65ea1cd-8ae9-41b1-99dd-fc29f25ac6cf","description":""},{"name":"Donation Request","item":[{"name":"donation-request","id":"802518e1-f5fe-4d34-ba10-d3e7537b1111","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"donor_id\": 2,\r\n    \"requested_by\":3,\r\n    \"phone_number\":\"8079123564\",\r\n    \"blood_group\":\"A+\",\r\n    \"required_on\":\"2023-07-11T11:11\",\r\n    \"place_of_donation\":\"Jadavpur\",\r\n    \"units_required\":8,\r\n    \"type_of_donation\":\"blood\",\r\n    \"is_urgent\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://35.244.15.171:8000/donation/request/","urlObject":{"path":["donation","request",""],"host":["http://35.244.15.171:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"802518e1-f5fe-4d34-ba10-d3e7537b1111"},{"name":"Donation Status Update(active)","id":"6f347b8c-959f-45a7-99b3-ad4743e9ea90","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"current_status\": \"active\",\r\n    \"donor_id\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"http://35.244.15.171:8000/donation/donation-status-update/:donation-request-id/","urlObject":{"path":["donation","donation-status-update",":donation-request-id",""],"host":["http://35.244.15.171:8000"],"query":[],"variable":[{"id":"17c5e11a-1148-4fe7-bbcc-2de3504b68ce","type":"any","value":"c5ab4ef3-0f81-45f8-86c1-9164aa958c44","key":"donation-request-id"}]}},"response":[],"_postman_id":"6f347b8c-959f-45a7-99b3-ad4743e9ea90"},{"name":"Donation Status Update(fullfilled)","id":"bb7cbf70-d48b-4be9-9a33-a771be6c711d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"current_status\": \"fullfilled\",\r\n    \"donor_id\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"http://35.244.15.171:8000/donation/donation-status-update/:donation-request-id/","urlObject":{"path":["donation","donation-status-update",":donation-request-id",""],"host":["http://35.244.15.171:8000"],"query":[],"variable":[{"id":"fb52792c-4c3c-44b3-944d-eca45c84ed68","type":"any","value":"c5ab4ef3-0f81-45f8-86c1-9164aa958c44","key":"donation-request-id"}]}},"response":[],"_postman_id":"bb7cbf70-d48b-4be9-9a33-a771be6c711d"},{"name":"Donor's Donation History","id":"530db81a-fd2c-4f08-a6dd-6abac4283aa2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"donor_id\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"http://35.244.15.171:8000/donation/donor-history/","urlObject":{"path":["donation","donor-history",""],"host":["http://35.244.15.171:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"530db81a-fd2c-4f08-a6dd-6abac4283aa2"},{"name":"Receiver History","id":"91fd5451-70cc-4025-adaa-a132fa5fbaa1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"requested_by\":2\r\n}","options":{"raw":{"language":"json"}}},"url":"http://35.244.15.171:8000/donation/receiver-history/","urlObject":{"path":["donation","receiver-history",""],"host":["http://35.244.15.171:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"91fd5451-70cc-4025-adaa-a132fa5fbaa1"}],"id":"49d1f3d5-4b28-4d80-a98c-fc5bf123fc2a","_postman_id":"49d1f3d5-4b28-4d80-a98c-fc5bf123fc2a","description":""},{"name":"Nearby Blood Banks","item":[{"name":"get nearby blood banks","id":"e31e3911-53a4-4b59-b848-9f21ccc1c149","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://35.244.15.171:8000/nearby_hospital/:user_id/","urlObject":{"path":["nearby_hospital",":user_id",""],"host":["http://35.244.15.171:8000"],"query":[],"variable":[{"id":"870608e5-7adf-43dd-aab5-0d5a4581b052","type":"any","value":"3","key":"user_id"}]}},"response":[],"_postman_id":"e31e3911-53a4-4b59-b848-9f21ccc1c149"}],"id":"5deaf807-f429-4cae-ba2f-eb81036c1874","_postman_id":"5deaf807-f429-4cae-ba2f-eb81036c1874","description":""}],"event":[{"listen":"prerequest","script":{"id":"2208efdb-f144-4db6-b6b1-b58f3ffc8f85","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9bc1c8a6-b10b-4133-a6fa-1cc5dd3b370b","type":"text/javascript","exec":[""]}}],"variable":[{"key":"url","value":"http://35.244.15.171:8000","type":"string"}]}