{"info":{"_postman_id":"90671343-8bff-4c2c-9d30-6e9560796330","name":"Hach the winter","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"39215245","collectionId":"90671343-8bff-4c2c-9d30-6e9560796330","publishedId":"2sBXVbJuTv","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-12-31T18:41:09.000Z"},"item":[{"name":"Hospital","item":[{"name":"1. Health Check","item":[{"name":"Health Check","id":"2cc8b2f4-604d-431b-9c27-3954ecd1a7b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/health","urlObject":{"path":["health"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"2cc8b2f4-604d-431b-9c27-3954ecd1a7b5"}],"id":"7ae293be-5653-4148-b3df-df11768dec7e","_postman_id":"7ae293be-5653-4148-b3df-df11768dec7e","description":""},{"name":"2. Hospital Management","item":[{"name":"Create Hospital","id":"5dcb4acd-c07a-4cf5-a554-57ef09d3e3ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Max Healthcare Delhi\",\n  \"registrationNumber\": \"HOSP-DEL-001\",\n  \"email\": \"contact@maxhealthcare.com\",\n  \"phone\": \"+91-9876543210\",\n  \"address\": \"Saket, New Delhi - 110017\",\n  \"city\": \"Delhi\",\n  \"coordinates\": [77.2090, 28.6139]\n}"},"url":"/api/hospitals","urlObject":{"path":["api","hospitals"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"5dcb4acd-c07a-4cf5-a554-57ef09d3e3ba"},{"name":"Get Hospital by ID","id":"3909d6ba-914e-4e1e-a771-642b79c82145","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/api/hospitals/","urlObject":{"path":["api","hospitals",""],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"3909d6ba-914e-4e1e-a771-642b79c82145"},{"name":"Get All Hospitals","id":"8c014731-9863-4d04-ae37-a89b4d08a9e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/api/hospitals?verificationStatus=VERIFIED&city=Delhi&page=1&limit=10","urlObject":{"path":["api","hospitals"],"host":[""],"query":[{"key":"verificationStatus","value":"VERIFIED"},{"key":"city","value":"Delhi"},{"key":"page","value":"1"},{"key":"limit","value":"10"}],"variable":[]}},"response":[],"_postman_id":"8c014731-9863-4d04-ae37-a89b4d08a9e6"},{"name":"Get Nearby Hospitals (Geospatial)","id":"145c3041-85ab-4f21-bc6e-8cb195c90b12","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/api/hospitals/nearby?longitude=77.2090&latitude=28.6139&maxDistance=5000","urlObject":{"path":["api","hospitals","nearby"],"host":[""],"query":[{"key":"longitude","value":"77.2090"},{"key":"latitude","value":"28.6139"},{"key":"maxDistance","value":"5000"}],"variable":[]}},"response":[],"_postman_id":"145c3041-85ab-4f21-bc6e-8cb195c90b12"},{"name":"Update Hospital","id":"46f2a59a-b9fe-45ee-9d27-da6c16a63006","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"phone\": \"+91-9876543211\",\n  \"address\": \"New Address, Saket, Delhi - 110017\"\n}"},"url":"/api/hospitals/","urlObject":{"path":["api","hospitals",""],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"46f2a59a-b9fe-45ee-9d27-da6c16a63006"},{"name":"Delete Hospital","id":"c4d2ea6d-173a-4243-be9b-e0f6b004855d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/api/hospitals/","urlObject":{"path":["api","hospitals",""],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"c4d2ea6d-173a-4243-be9b-e0f6b004855d"},{"name":"Verify Hospital (Admin)","id":"5ec846d3-6012-47b7-a9bf-168f184d75f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"adminId\": \"\",\n  \"reason\": \"All documents verified successfully\"\n}"},"url":"/api/hospitals//verify","urlObject":{"path":["api","hospitals","","verify"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"5ec846d3-6012-47b7-a9bf-168f184d75f8"},{"name":"Reject Hospital (Admin)","id":"1ca96873-6cfd-499d-aae7-21d2ad0ed6a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"adminId\": \"\",\n  \"reason\": \"Invalid registration documents\"\n}"},"url":"/api/hospitals//reject","urlObject":{"path":["api","hospitals","","reject"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"1ca96873-6cfd-499d-aae7-21d2ad0ed6a8"},{"name":"Suspend Hospital (Admin)","id":"ea8ba1e1-0123-4d3a-a245-0542ec0fbf9f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"adminId\": \"\",\n  \"reason\": \"Violation of terms and conditions\"\n}"},"url":"/api/hospitals//suspend","urlObject":{"path":["api","hospitals","","suspend"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"ea8ba1e1-0123-4d3a-a245-0542ec0fbf9f"},{"name":"Get Hospital Admin Actions","id":"ce2b0ad2-c274-4540-8789-3948be497c44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/api/hospitals//actions?page=1&limit=10","urlObject":{"path":["api","hospitals","","actions"],"host":[""],"query":[{"key":"page","value":"1"},{"key":"limit","value":"10"}],"variable":[]}},"response":[],"_postman_id":"ce2b0ad2-c274-4540-8789-3948be497c44"},{"name":"Get Hospital Statistics","id":"472caee1-2207-4850-882a-d383c45468b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/api/hospitals/stats","urlObject":{"path":["api","hospitals","stats"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"472caee1-2207-4850-882a-d383c45468b1"},{"name":"Get Hospitals by City","id":"1e96e3fd-abac-4921-a95a-a84ab43bdf54","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/api/hospitals/stats/by-city","urlObject":{"path":["api","hospitals","stats","by-city"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"1e96e3fd-abac-4921-a95a-a84ab43bdf54"}],"id":"9c83bd4f-2326-4ce9-92fd-5a65d6bbb5af","_postman_id":"9c83bd4f-2326-4ce9-92fd-5a65d6bbb5af","description":""},{"name":"3. Hospital-NGO Drives","item":[{"name":"Create Drive","id":"3ba25322-e7c6-4404-9051-82b84093f32d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"hospitalId\": \"\",\n  \"ngoId\": \"\",\n  \"driveTitle\": \"Emergency Blood Donation Camp - New Year 2025\",\n  \"location\": \"Hospital Main Campus, Auditorium Hall\",\n  \"driveDate\": \"2025-12-30T10:00:00.000Z\",\n  \"expectedUnits\": 50\n}"},"url":"/api/hospital-ngo-drives","urlObject":{"path":["api","hospital-ngo-drives"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"3ba25322-e7c6-4404-9051-82b84093f32d"},{"name":"Get Drive by ID","id":"412f108d-e9de-4eb8-ab5e-ddfff566bbe9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/api/hospital-ngo-drives/","urlObject":{"path":["api","hospital-ngo-drives",""],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"412f108d-e9de-4eb8-ab5e-ddfff566bbe9"},{"name":"Get Drives by Hospital","id":"5243ea76-ac76-42b4-bf71-43d61ac25bcc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/api/hospital-ngo-drives/hospital/?status=PENDING&page=1&limit=10","urlObject":{"path":["api","hospital-ngo-drives","hospital",""],"host":[""],"query":[{"key":"status","value":"PENDING"},{"key":"page","value":"1"},{"key":"limit","value":"10"}],"variable":[]}},"response":[],"_postman_id":"5243ea76-ac76-42b4-bf71-43d61ac25bcc"},{"name":"Get Drives by NGO","id":"014c298d-e176-4d49-89a6-6b8fa30156be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/api/hospital-ngo-drives/ngo/?status=PENDING&page=1&limit=10","urlObject":{"path":["api","hospital-ngo-drives","ngo",""],"host":[""],"query":[{"key":"status","value":"PENDING"},{"key":"page","value":"1"},{"key":"limit","value":"10"}],"variable":[]}},"response":[],"_postman_id":"014c298d-e176-4d49-89a6-6b8fa30156be"},{"name":"Get Upcoming Drives","id":"f5191eb9-0760-41c6-a9d3-024e7498eb2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/api/hospital-ngo-drives/hospital//upcoming?page=1&limit=10","urlObject":{"path":["api","hospital-ngo-drives","hospital","","upcoming"],"host":[""],"query":[{"key":"page","value":"1"},{"key":"limit","value":"10"}],"variable":[]}},"response":[],"_postman_id":"f5191eb9-0760-41c6-a9d3-024e7498eb2d"},{"name":"Update Drive","id":"ee49116b-35d6-4547-a5b8-52d267dcd516","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"driveTitle\": \"Updated: Emergency Blood Donation Camp\",\n  \"expectedUnits\": 60\n}"},"url":"/api/hospital-ngo-drives/","urlObject":{"path":["api","hospital-ngo-drives",""],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"ee49116b-35d6-4547-a5b8-52d267dcd516"},{"name":"Accept Drive (NGO)","id":"bab29494-4f0a-4149-ab9d-d651cd0fa3fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"/api/hospital-ngo-drives//accept","urlObject":{"path":["api","hospital-ngo-drives","","accept"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"bab29494-4f0a-4149-ab9d-d651cd0fa3fa"},{"name":"Reject Drive (NGO)","id":"9a199c6f-424c-4883-a3f3-895b316dec56","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"/api/hospital-ngo-drives//reject","urlObject":{"path":["api","hospital-ngo-drives","","reject"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"9a199c6f-424c-4883-a3f3-895b316dec56"},{"name":"Complete Drive","id":"f84ab68d-82e5-4656-8673-c08255f0f5d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"/api/hospital-ngo-drives//complete","urlObject":{"path":["api","hospital-ngo-drives","","complete"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"f84ab68d-82e5-4656-8673-c08255f0f5d8"},{"name":"Delete Drive","id":"23529b03-c637-46cf-9784-be3edc9a78da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/api/hospital-ngo-drives/","urlObject":{"path":["api","hospital-ngo-drives",""],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"23529b03-c637-46cf-9784-be3edc9a78da"},{"name":"Get Drive Stats (Hospital)","id":"fc739586-6e6f-4ac4-a7e3-a329b2168107","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/api/hospital-ngo-drives/hospital//stats","urlObject":{"path":["api","hospital-ngo-drives","hospital","","stats"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"fc739586-6e6f-4ac4-a7e3-a329b2168107"},{"name":"Get Drive Stats (NGO)","id":"c34028d2-5a99-4e50-8ac4-a2ca67286129","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/api/hospital-ngo-drives/ngo//stats","urlObject":{"path":["api","hospital-ngo-drives","ngo","","stats"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"c34028d2-5a99-4e50-8ac4-a2ca67286129"}],"id":"f5f7147a-3a18-4404-ab11-9e828445af1a","_postman_id":"f5f7147a-3a18-4404-ab11-9e828445af1a","description":""},{"name":"4. Hospital Blood Requests","item":[{"name":"Create Blood Request","id":"d23280d3-b3ed-4e7b-814c-64613edce6cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"hospitalId\": \"\",\n  \"bloodBankId\": \"\",\n  \"bloodGroup\": \"O+\",\n  \"unitsRequired\": 3,\n  \"urgency\": \"CRITICAL\",\n  \"notes\": \"Emergency surgery required - Patient in critical condition\"\n}"},"url":"/api/hospital-blood-requests","urlObject":{"path":["api","hospital-blood-requests"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"d23280d3-b3ed-4e7b-814c-64613edce6cf"},{"name":"Get Request by ID","id":"d5fd6268-cbd7-4949-9c8b-e9234b9f58a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/api/hospital-blood-requests/{{request_id}}","urlObject":{"path":["api","hospital-blood-requests","{{request_id}}"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"d5fd6268-cbd7-4949-9c8b-e9234b9f58a2"},{"name":"Get Critical Requests","id":"a0f61b4e-200c-4f09-8138-36101871655b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/api/hospital-blood-requests/critical?hospitalId=&page=1&limit=10","urlObject":{"path":["api","hospital-blood-requests","critical"],"host":[""],"query":[{"key":"hospitalId","value":""},{"key":"page","value":"1"},{"key":"limit","value":"10"}],"variable":[]}},"response":[],"_postman_id":"a0f61b4e-200c-4f09-8138-36101871655b"},{"name":"Get Requests by Hospital","id":"2e74400c-f111-4367-8324-9bf74c614d23","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/api/hospital-blood-requests/hospital/?status=PENDING&urgency=CRITICAL&bloodGroup=O+&page=1&limit=10","urlObject":{"path":["api","hospital-blood-requests","hospital",""],"host":[""],"query":[{"key":"status","value":"PENDING"},{"key":"urgency","value":"CRITICAL"},{"key":"bloodGroup","value":"O+"},{"key":"page","value":"1"},{"key":"limit","value":"10"}],"variable":[]}},"response":[],"_postman_id":"2e74400c-f111-4367-8324-9bf74c614d23"},{"name":"Get Requests by Blood Bank","id":"61cdeb52-15da-4c35-b840-c11c111502c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/api/hospital-blood-requests/bloodbank/?status=PENDING&page=1&limit=10","urlObject":{"path":["api","hospital-blood-requests","bloodbank",""],"host":[""],"query":[{"key":"status","value":"PENDING"},{"key":"page","value":"1"},{"key":"limit","value":"10"}],"variable":[]}},"response":[],"_postman_id":"61cdeb52-15da-4c35-b840-c11c111502c1"},{"name":"Update Request","id":"97f7b085-3115-4d75-925e-33a0e71e5af8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"unitsRequired\": 5,\n  \"urgency\": \"HIGH\",\n  \"notes\": \"Updated: Need 5 units now\"\n}"},"url":"/api/hospital-blood-requests/{{request_id}}","urlObject":{"path":["api","hospital-blood-requests","{{request_id}}"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"97f7b085-3115-4d75-925e-33a0e71e5af8"},{"name":"Accept Request (Blood Bank)","id":"75f688ae-5498-42f8-9bc3-63ed28b217b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"/api/hospital-blood-requests/{{request_id}}/accept","urlObject":{"path":["api","hospital-blood-requests","{{request_id}}","accept"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"75f688ae-5498-42f8-9bc3-63ed28b217b0"},{"name":"Reject Request (Blood Bank)","id":"b77e1ea2-7815-4dac-ab4e-3effb16ceee5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"/api/hospital-blood-requests/{{request_id}}/reject","urlObject":{"path":["api","hospital-blood-requests","{{request_id}}","reject"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"b77e1ea2-7815-4dac-ab4e-3effb16ceee5"},{"name":"Complete Request","id":"f4a50c62-518a-4abc-8875-e8fe3ebca321","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"/api/hospital-blood-requests/{{request_id}}/complete","urlObject":{"path":["api","hospital-blood-requests","{{request_id}}","complete"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"f4a50c62-518a-4abc-8875-e8fe3ebca321"},{"name":"Delete Request","id":"acf8e1cc-9269-4a2e-9a2e-cf8a1aa27161","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/api/hospital-blood-requests/{{request_id}}","urlObject":{"path":["api","hospital-blood-requests","{{request_id}}"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"acf8e1cc-9269-4a2e-9a2e-cf8a1aa27161"},{"name":"Get Request Stats (Hospital)","id":"b9f4e7b6-ac80-441c-b8d2-372110515c48","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/api/hospital-blood-requests/hospital//stats","urlObject":{"path":["api","hospital-blood-requests","hospital","","stats"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"b9f4e7b6-ac80-441c-b8d2-372110515c48"},{"name":"Get Request Stats (Blood Bank)","id":"e42c326b-4bcc-4eee-b412-f5955b10aff8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/api/hospital-blood-requests/bloodbank//stats","urlObject":{"path":["api","hospital-blood-requests","bloodbank","","stats"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"e42c326b-4bcc-4eee-b412-f5955b10aff8"}],"id":"e1669060-6d6d-41a3-b74f-dbec8484351f","_postman_id":"e1669060-6d6d-41a3-b74f-dbec8484351f","description":""}],"id":"84001a56-dcd0-417c-9232-47daf9415b8b","_postman_id":"84001a56-dcd0-417c-9232-47daf9415b8b","description":""}],"variable":[{"key":"base_url","value":"","type":"default"},{"key":"hospital_id","value":"","type":"default"},{"key":"admin_id","value":"","type":"default"},{"key":"ngo_id","value":"","type":"default"},{"key":"drive_id","value":"","type":"default"},{"key":"bloodbank_id","value":"","type":"default"}]}