{"info":{"_postman_id":"55902acc-87d6-488c-ade6-dc167bad16e6","name":"Hospital Management","description":"<html><head></head><body><p>APIs created to streamline hospital operations, including patient management, and ward management. Perfect for building applications to enhance healthcare services and improve operational efficiency.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"29778371","collectionId":"55902acc-87d6-488c-ade6-dc167bad16e6","publishedId":"2sAYBbf9xJ","public":true,"customColor":{"top-bar":"d5ed9f","right-sidebar":"00712d","highlight":"FF6C37"},"publishDate":"2024-12-07T18:33:07.000Z"},"item":[{"name":"Home","id":"fc2011c2-7889-4814-b189-a062ba426fa8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host-hospital}}","urlObject":{"host":["{{host-hospital}}"],"query":[],"variable":[]}},"response":[{"id":"e160abe5-4509-4c89-8601-15272d9ae1e9","name":"New Request","originalRequest":{"method":"GET","header":[],"url":"{{host-hospital}}"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"20"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Date","value":"Sun, 02 Jun 2024 18:45:14 GMT"},{"key":"Etag","value":"W/\"14-OQ0alUrU9pUK6ivqJAjuoJPoedY\""},{"key":"Replit-Cluster","value":"janeway"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"Hospital Management!"}],"_postman_id":"fc2011c2-7889-4814-b189-a062ba426fa8"},{"name":"Get Patients","id":"a3f56b64-d6e7-4398-80f3-9a1ba45ca2f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host-hospital}}/patients","description":"<p>The endpoint retrieves a list of patients from the hospital.</p>\n<p>The response of this request can be documented as a JSON schema as follows:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"array\",\n  \"items\": {\n    \"type\": \"object\",\n    \"properties\": {\n      \"contactInformation\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"phoneNumber\": { \"type\": \"string\" },\n          \"address\": { \"type\": \"string\" }\n        }\n      },\n      \"_id\": { \"type\": \"string\" },\n      \"name\": { \"type\": \"string\" },\n      \"age\": { \"type\": \"integer\" },\n      \"gender\": { \"type\": \"string\" },\n      \"medicalHistory\": { \"type\": \"string\" },\n      \"assignedWard\": { \"type\": \"string\" },\n      \"__v\": { \"type\": \"integer\" }\n    }\n  }\n}\n\n</code></pre>\n","urlObject":{"path":["patients"],"host":["{{host-hospital}}"],"query":[],"variable":[]}},"response":[{"id":"e1d0f69e-f02a-4169-833e-32f9cfb377cf","name":"Get Patients","originalRequest":{"method":"GET","header":[],"url":"{{host-hospital}}/patients"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"215"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sun, 02 Jun 2024 18:50:12 GMT"},{"key":"Etag","value":"W/\"d7-R7UgGb5w8Wg+24PqaL190y3mPVw\""},{"key":"Replit-Cluster","value":"janeway"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"contactInformation\": {\n            \"phoneNumber\": \"\",\n            \"address\": \"2 Shantivan Society\"\n        },\n        \"_id\": \"665cbed7e6c1dc5ae56bccd4\",\n        \"name\": \"Amar K\",\n        \"age\": 50,\n        \"gender\": \"Male\",\n        \"medicalHistory\": \"High Blood Pressure\",\n        \"assignedWard\": \"1\",\n        \"__v\": 0\n    }\n]"}],"_postman_id":"a3f56b64-d6e7-4398-80f3-9a1ba45ca2f8"},{"name":"Create Patient","id":"ae3b2104-a675-422c-b929-b446427688f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Olivia Brown\",\n    \"age\": 31,\n    \"gender\": \"Female\",\n    \"medicalHistory\": \"Postpartum Hemorrhage\",\n    \"assignedWard\": \"5\",\n    \"noOfDaysAdmitted\": 5,\n    \"contactInformation\": {\n        \"phoneNumber\": \"678-678-6789\",\n        \"address\": \"65 Cedarwood St\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host-hospital}}/patients","description":"<h3 id=\"create-new-patient\">Create New Patient</h3>\n<p>This endpoint allows the creation of a new patient record.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p>name (string, required): The name of the patient.</p>\n</li>\n<li><p>age (number, required): The age of the patient.</p>\n</li>\n<li><p>gender (string, required): The gender of the patient.</p>\n</li>\n<li><p>medicalHistory (string, required): The medical history of the patient.</p>\n</li>\n<li><p>assignedWard (string, required): The ward assigned to the patient.</p>\n</li>\n<li><p>noOfDaysAdmitted (number, required): The number of days the patient has been admitted.</p>\n</li>\n<li><p>contactInformation (object, required): The contact information of the patient.</p>\n<ul>\n<li><p>phoneNumber (string, required): The phone number of the patient.</p>\n</li>\n<li><p>address (string, required): The address of the patient.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will be in the following JSON schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"message\": \"string\",\n  \"patient\": {\n    \"name\": \"string\",\n    \"age\": \"number\",\n    \"gender\": \"string\",\n    \"medicalHistory\": \"string\",\n    \"assignedWard\": \"string\",\n    \"contactInformation\": {\n      \"phoneNumber\": \"string\",\n      \"address\": \"string\"\n    },\n    \"_id\": \"string\",\n    \"__v\": \"number\"\n  }\n}\n\n</code></pre>\n","urlObject":{"path":["patients"],"host":["{{host-hospital}}"],"query":[],"variable":[]}},"response":[{"id":"a719afc3-37c7-47e4-bff6-eba02eb18b15","name":"Create Patient","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Amar K\",\n    \"age\": 50,\n    \"gender\": \"Male\",\n    \"medicalHistory\": \"High Blood Pressure\",\n    \"assignedWard\": \"1\",\n    \"contactInformation\": {\n        \"phoneNumber\": \"\",\n        \"address\": \"2 Shantivan Society\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host-hospital}}/patients"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"264"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sun, 02 Jun 2024 18:49:59 GMT"},{"key":"Etag","value":"W/\"108-fZE7WTq4hSsbGYsn+ZPZKRk07Ug\""},{"key":"Replit-Cluster","value":"janeway"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Patient added successfully\",\n    \"patient\": {\n        \"name\": \"Amar K\",\n        \"age\": 50,\n        \"gender\": \"Male\",\n        \"medicalHistory\": \"High Blood Pressure\",\n        \"assignedWard\": \"1\",\n        \"contactInformation\": {\n            \"phoneNumber\": \"\",\n            \"address\": \"2 Shantivan Society\"\n        },\n        \"_id\": \"665cbed7e6c1dc5ae56bccd4\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"ae3b2104-a675-422c-b929-b446427688f1"},{"name":"Update Patient","id":"ab34ce3d-3a0a-4b37-a05f-ca3560a25c8e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Amar K\",\n    \"age\": 50,\n    \"gender\": \"Male\",\n    \"medicalHistory\": \"High Blood Pressure\",\n    \"assignedWard\": \"1\",\n    \"noOfDaysAdmitted\" : \"5\",\n    \"contactInformation\": {\n        \"phoneNumber\": \"9843821323\",\n        \"address\": \"2 Shantivan Society\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host-hospital}}/patients/665cbed7e6c1dc5ae56bccd4","description":"<h3 id=\"update-patient-information\">Update Patient Information</h3>\n<p>This endpoint allows updating the information of a specific patient.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p>name (string, required): The name of the patient.</p>\n</li>\n<li><p>age (number, required): The age of the patient.</p>\n</li>\n<li><p>gender (string, required): The gender of the patient.</p>\n</li>\n<li><p>medicalHistory (string, required): The medical history of the patient.</p>\n</li>\n<li><p>assignedWard (string, required): The ward assigned to the patient.</p>\n</li>\n<li><p>noOfDaysAdmitted (number, required): The number of days the patient has been admitted.</p>\n</li>\n<li><p>contactInformation (object, required): The contact information of the patient.</p>\n<ul>\n<li><p>phoneNumber (string, required): The phone number of the patient.</p>\n</li>\n<li><p>address (string, required): The address of the patient.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"message\": \"string\",\n  \"updatedPatient\": {\n    \"contactInformation\": {\n      \"phoneNumber\": \"string\",\n      \"address\": \"string\"\n    },\n    \"_id\": \"string\",\n    \"name\": \"string\",\n    \"age\": \"number\",\n    \"gender\": \"string\",\n    \"medicalHistory\": \"string\",\n    \"assignedWard\": \"string\",\n    \"__v\": \"number\"\n  }\n}\n\n</code></pre>\n","urlObject":{"path":["patients","665cbed7e6c1dc5ae56bccd4"],"host":["{{host-hospital}}"],"query":[],"variable":[]}},"response":[{"id":"b4f7e410-299c-49ad-8387-ae61b986fa6f","name":"Update Patient","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Amar K\",\n    \"age\": 50,\n    \"gender\": \"Male\",\n    \"medicalHistory\": \"High Blood Pressure\",\n    \"assignedWard\": \"1\",\n    \"contactInformation\": {\n        \"phoneNumber\": \"9843821323\",\n        \"address\": \"2 Shantivan Society\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host-hospital}}/patients/665cbed7e6c1dc5ae56bccd4"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"85"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sun, 02 Jun 2024 18:55:00 GMT"},{"key":"Etag","value":"W/\"55-m8WTfqWdV8/roym22UMZ3evojTc\""},{"key":"Replit-Cluster","value":"janeway"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Internal Server ErrorCannot access 'updatedPatient' before initialization\"\n}"},{"id":"2069d3c8-6411-4598-83e3-8415a9675225","name":"Update Patient","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Amar K\",\n    \"age\": 50,\n    \"gender\": \"Male\",\n    \"medicalHistory\": \"High Blood Pressure\",\n    \"assignedWard\": \"1\",\n    \"contactInformation\": {\n        \"phoneNumber\": \"9843821323\",\n        \"address\": \"2 Shantivan Society\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host-hospital}}/patients/665cbed7e6c1dc5ae56bccd4"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"283"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sun, 02 Jun 2024 18:56:07 GMT"},{"key":"Etag","value":"W/\"11b-L2MTdddi6wMGHW9hrc3rzKDwni4\""},{"key":"Replit-Cluster","value":"janeway"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Patient updated successfully\",\n    \"updatedPatient\": {\n        \"contactInformation\": {\n            \"phoneNumber\": \"9843821323\",\n            \"address\": \"2 Shantivan Society\"\n        },\n        \"_id\": \"665cbed7e6c1dc5ae56bccd4\",\n        \"name\": \"Amar K\",\n        \"age\": 50,\n        \"gender\": \"Male\",\n        \"medicalHistory\": \"High Blood Pressure\",\n        \"assignedWard\": \"1\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"ab34ce3d-3a0a-4b37-a05f-ca3560a25c8e"},{"name":"Delete Patient","id":"82c03324-c6f8-4126-9ba4-6f709128b233","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{host-hospital}}/patients/665cc05d6fba7a30e57434e0","description":"<p>The endpoint sends an HTTP DELETE request to delete a specific patient with the provided ID.</p>\n<p>The response for this request is a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"message\": {\n      \"type\": \"string\"\n    },\n    \"deletedPatient\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"contactInformation\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"phoneNumber\": {\n              \"type\": \"string\"\n            },\n            \"address\": {\n              \"type\": \"string\"\n            }\n          }\n        },\n        \"_id\": {\n          \"type\": \"string\"\n        },\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"age\": {\n          \"type\": \"integer\"\n        },\n        \"gender\": {\n          \"type\": \"string\"\n        },\n        \"medicalHistory\": {\n          \"type\": \"string\"\n        },\n        \"assignedWard\": {\n          \"type\": \"string\"\n        },\n        \"__v\": {\n          \"type\": \"integer\"\n        }\n      }\n    }\n  }\n}\n\n</code></pre>\n","urlObject":{"path":["patients","665cc05d6fba7a30e57434e0"],"host":["{{host-hospital}}"],"query":[],"variable":[]}},"response":[{"id":"bbc439cd-0b4b-4758-a9fc-448594e41689","name":"Delete Patient","originalRequest":{"method":"DELETE","header":[],"url":"{{host-hospital}}/patients/665cc05d6fba7a30e57434e0"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"274"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sun, 02 Jun 2024 18:56:50 GMT"},{"key":"Etag","value":"W/\"112-w1pxqYIhnbATtwuIAZJPbUsicbs\""},{"key":"Replit-Cluster","value":"janeway"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Patient deleted successfully\",\n    \"deletedPatient\": {\n        \"contactInformation\": {\n            \"phoneNumber\": \"\",\n            \"address\": \"2 Shantivan Society\"\n        },\n        \"_id\": \"665cc05d6fba7a30e57434e0\",\n        \"name\": \"Amatr K\",\n        \"age\": 50,\n        \"gender\": \"Male\",\n        \"medicalHistory\": \"High Blood Pressure\",\n        \"assignedWard\": \"1\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"82c03324-c6f8-4126-9ba4-6f709128b233"},{"name":"Get Wards","id":"550de32d-a88e-4c71-98fd-ae05eafee6e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host-hospital}}/wards","description":"<p>This endpoint sends an HTTP GET request to retrieve information about hospital wards.</p>\n<h3 id=\"response\">Response</h3>\n<p>The response of this request is a JSON object representing the information about the hospital wards. To document the response as a JSON schema, the structure of the JSON object can be defined with the appropriate data types and properties.</p>\n","urlObject":{"path":["wards"],"host":["{{host-hospital}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"550de32d-a88e-4c71-98fd-ae05eafee6e2"},{"name":"Create Ward","id":"804e5ec6-8b74-400b-93a6-77aecf5edfe4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"wardNo\": 5,\n    \"specialization\": \"Mother and Child\",\n    \"capacity\": 15\n}","options":{"raw":{"language":"json"}}},"url":"{{host-hospital}}/wards","description":"<p>The POST request to /wards endpoint is used to create a new ward with the specified ward number, specialization, and capacity.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><p>wardNo (number): The number of the ward.</p>\n</li>\n<li><p>specialization (string): The specialization of the ward.</p>\n</li>\n<li><p>capacity (number): The maximum capacity of the ward.</p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The response of this request can be documented as a JSON schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"message\": {\n      \"type\": \"string\"\n    },\n    \"newWard\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"wardNo\": {\n          \"type\": \"number\"\n        },\n        \"specialization\": {\n          \"type\": \"string\"\n        },\n        \"capacity\": {\n          \"type\": \"number\"\n        },\n        \"_id\": {\n          \"type\": \"string\"\n        },\n        \"__v\": {\n          \"type\": \"number\"\n        }\n      }\n    }\n  }\n}\n\n</code></pre>\n","urlObject":{"path":["wards"],"host":["{{host-hospital}}"],"query":[],"variable":[]}},"response":[{"id":"5b7c60ed-61ae-47bc-b9ad-c47cc655dd14","name":"Create Ward","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"wardNo\": 1,\n    \"specialization\": \"Cardiology\",\n    \"capacity\": 20\n}","options":{"raw":{"language":"json"}}},"url":"{{host-hospital}}/wards"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"145"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sun, 02 Jun 2024 18:59:32 GMT"},{"key":"Etag","value":"W/\"91-/GnnJ61keAUWjVejI6K0kQChhLk\""},{"key":"Replit-Cluster","value":"janeway"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Ward added successfully\",\n    \"newWard\": {\n        \"wardNo\": 1,\n        \"specialization\": \"Cardiology\",\n        \"capacity\": 20,\n        \"_id\": \"665cc1146fba7a30e57434e4\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"804e5ec6-8b74-400b-93a6-77aecf5edfe4"},{"name":"Update Ward","id":"7314be4c-3b45-454f-a9cc-3726ec645e01","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"wardNo\": 1,\n    \"specialization\": \"Cardiology\",\n    \"capacity\": 25\n}","options":{"raw":{"language":"json"}}},"url":"{{host-hospital}}/wards/665cc1146fba7a30e57434e4","description":"<h3 id=\"update-ward-details\">Update Ward Details</h3>\n<p>This endpoint allows the client to update the details of a specific ward.</p>\n<h4 id=\"request\">Request</h4>\n<p>The HTTP PUT request should be made to <code>{{host-hospital}}/wards/665cc1146fba7a30e57434e4</code>.</p>\n<p>The request body should be in raw JSON format and include the following parameters:</p>\n<ul>\n<li><p><code>wardNo</code> (number): The number of the ward.</p>\n</li>\n<li><p><code>specialization</code> (string): The specialization of the ward.</p>\n</li>\n<li><p><code>capacity</code> (number): The capacity of the ward.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"message\": \"string\",\n  \"updatedWard\": {\n    \"_id\": \"string\",\n    \"wardNo\": \"number\",\n    \"specialization\": \"string\",\n    \"capacity\": \"number\",\n    \"__v\": \"number\"\n  }\n}\n\n</code></pre>\n","urlObject":{"path":["wards","665cc1146fba7a30e57434e4"],"host":["{{host-hospital}}"],"query":[],"variable":[]}},"response":[{"id":"076630d2-2812-4156-bdd0-fac254b06124","name":"Update Ward","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"wardNo\": 1,\n    \"specialization\": \"Cardiology\",\n    \"capacity\": 25\n}","options":{"raw":{"language":"json"}}},"url":"{{host-hospital}}/wards/665cc1146fba7a30e57434e4"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"26"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sun, 02 Jun 2024 19:00:56 GMT"},{"key":"Etag","value":"W/\"1a-NZR7/QmhyOzcJpahtKLdKvDkCEI\""},{"key":"Replit-Cluster","value":"janeway"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Ward not found\"\n}"},{"id":"00dc684d-fc2b-48ad-ad10-6e70bf492e04","name":"Update Ward","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"wardNo\": 1,\n    \"specialization\": \"Cardiology\",\n    \"capacity\": 25\n}","options":{"raw":{"language":"json"}}},"url":"{{host-hospital}}/wards/665cc1146fba7a30e57434e4"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"151"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sun, 02 Jun 2024 19:05:11 GMT"},{"key":"Etag","value":"W/\"97-RCRALJqgqQH7wpFf633Ky803eOM\""},{"key":"Replit-Cluster","value":"janeway"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Ward updated successfully\",\n    \"updatedWard\": {\n        \"_id\": \"665cc1146fba7a30e57434e4\",\n        \"wardNo\": 1,\n        \"specialization\": \"Cardiology\",\n        \"capacity\": 25,\n        \"__v\": 0\n    }\n}"}],"_postman_id":"7314be4c-3b45-454f-a9cc-3726ec645e01"},{"name":"Delete Ward","id":"e17d7784-b138-4645-a2b4-d22145043cf7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{host-hospital}}/wards/665cc1146fba7a30e57434e4","description":"<p>The HTTP DELETE request is used to delete a specific ward with the given ID. The response for this request will be a JSON object containing a message and the details of the deleted ward.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"message\": {\n      \"type\": \"string\"\n    },\n    \"deletedWard\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"_id\": {\n          \"type\": \"string\"\n        },\n        \"wardNo\": {\n          \"type\": \"integer\"\n        },\n        \"specialization\": {\n          \"type\": \"string\"\n        },\n        \"capacity\": {\n          \"type\": \"integer\"\n        },\n        \"__v\": {\n          \"type\": \"integer\"\n        }\n      }\n    }\n  }\n}\n\n</code></pre>\n","urlObject":{"path":["wards","665cc1146fba7a30e57434e4"],"host":["{{host-hospital}}"],"query":[],"variable":[]}},"response":[{"id":"8d205525-e052-44d9-9bc0-55fc00ea2297","name":"Delete Ward","originalRequest":{"method":"DELETE","header":[],"url":"{{host-hospital}}/wards/665cc1146fba7a30e57434e4"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"151"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sun, 02 Jun 2024 19:05:44 GMT"},{"key":"Etag","value":"W/\"97-27y+SVxXprQ2+TtENM5tYHik5KY\""},{"key":"Replit-Cluster","value":"janeway"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Ward deleted successfully\",\n    \"deletedWard\": {\n        \"_id\": \"665cc1146fba7a30e57434e4\",\n        \"wardNo\": 1,\n        \"specialization\": \"Cardiology\",\n        \"capacity\": 25,\n        \"__v\": 0\n    }\n}"}],"_postman_id":"e17d7784-b138-4645-a2b4-d22145043cf7"}]}