{"info":{"_postman_id":"5b19a6b3-4ac6-4387-abbb-a99d379afdee","name":"Hall-Booking","description":"<html><head></head><body><h1 id=\"hall-booking-api\">Hall Booking API</h1>\n<h2 id=\"overview\">Overview</h2>\n<p>Hall Booking API used to manage all the task realated to Hall Booking</p>\n<h2 id=\"endpoints\">Endpoints</h2>\n<p>Base URL - <a href=\"https://hall-booking-q9ll.onrender.com/\">https://hall-booking-q9ll.onrender.com/</a></p>\n<p><code>POST Request</code></p>\n<h3 id=\"1adding-a-new-room--\">1.Adding a new Room -</h3>\n<p><a href=\"https://hall-booking-q9ll.onrender.com/\">https://hall-booking-q9ll.onrender.com/room/add</a></p>\n<h4 id=\"request-data-format\">Request Data Format</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"roomID\": \"B1\",\n    \"seats\": 3,\n    \"amenities\": [\"AC\", \"Double bedroom\", \"Heater\"],\n    \"Price\": 300\n}\n\n</code></pre>\n<h4 id=\"response-data-format\">Response Data Format</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"data addded successfully\",\n    \"data\": {\n        \"acknowledged\": true,\n        \"insertedId\": \"656de6e4e8078f89eda52c54\"\n    }\n}\n\n</code></pre>\n<p>If the Room ID already exist it will throw an Error</p>\n<h3 id=\"2adding-new-booking--\">2.Adding new Booking -</h3>\n<p><a href=\"https://hall-booking-q9ll.onrender.com/\">https://hall-booking-q9ll.onrender.com/customer/add</a></p>\n<h4 id=\"request-data-format-1\">Request Data Format</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"cusName\": \"guru\",\n    \"Date\": \"12/05/2023\",\n    \"start_time\": 14,\n    \"end_time\": 18,\n    \"room_ID\": \"C1\"\n}\n\n</code></pre>\n<h4 id=\"response-data-format-1\">Response Data Format</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"data addded successfully\",\n    \"data\": {\n        \"acknowledged\": true,\n        \"insertedId\": \"656de6e4e8078f89eda52c54\"\n    }\n}\n\n</code></pre>\n<p>If the Room ID already Booked for that date and time it will throw an Error</p>\n<p><code>GET Request</code></p>\n<h3 id=\"1get-all-the-rooms-details--\">1.Get All the rooms details -</h3>\n<p><a href=\"https://hall-booking-q9ll.onrender.com/\">https://hall-booking-q9ll.onrender.com/room/all</a></p>\n<h4 id=\"request-data-format-2\">Request Data Format</h4>\n<p>None required</p>\n<h3 id=\"2get-room-details-with-customer-who-booked-the-room--\">2.Get room details with customer who booked the room -</h3>\n<p><a href=\"https://hall-booking-q9ll.onrender.com/room/allroom\">https://hall-booking-q9ll.onrender.com/room/allroom</a></p>\n<h4 id=\"request-data-format-3\">Request Data Format</h4>\n<p>None required</p>\n<h3 id=\"3get-customer-details--\">3.Get Customer details -</h3>\n<p><a href=\"https://hall-booking-q9ll.onrender.com/customer/all\">https://hall-booking-q9ll.onrender.com/customer/all</a></p>\n<h4 id=\"request-data-format-4\">Request Data Format</h4>\n<p>None required</p>\n<h3 id=\"4get-customer-details-with-number-of-times-they-booked-a-room-and-room-details--\">4.Get Customer details with number of times they booked a room and room details -</h3>\n<p><a href=\"https://hall-booking-q9ll.onrender.com/customer/cus/count\">https://hall-booking-q9ll.onrender.com/customer/cus/count</a></p>\n<h4 id=\"request-data-format-5\">Request Data Format</h4>\n<p>None required</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Hall Booking API","slug":"hall-booking-api"}],"owner":"31335509","collectionId":"5b19a6b3-4ac6-4387-abbb-a99d379afdee","publishedId":"2s9YeLXUS4","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-12-04T15:06:17.000Z"},"item":[{"name":"get_rooms","id":"06f21a8f-0242-48a0-b2db-22876b1d5b63","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://hall-booking-q9ll.onrender.com/room/all","urlObject":{"protocol":"https","path":["room","all"],"host":["hall-booking-q9ll","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"06f21a8f-0242-48a0-b2db-22876b1d5b63"},{"name":"get_cus_room","id":"0808fc40-9124-475a-a173-39c012fe9fc1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://hall-booking-q9ll.onrender.com/room/allroom","urlObject":{"protocol":"https","path":["room","allroom"],"host":["hall-booking-q9ll","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0808fc40-9124-475a-a173-39c012fe9fc1"},{"name":"add_room","id":"8522b675-be84-4695-8017-8c3e85bf8ace","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"roomID\": \"A1\",\r\n    \"seats\": 3,\r\n    \"amenities\": [\"AC\", \"Double bedroom\", \"Heater\"],\r\n    \"Price\": 300\r\n}","options":{"raw":{"language":"json"}}},"url":"https://hall-booking-q9ll.onrender.com/room/add","urlObject":{"protocol":"https","path":["room","add"],"host":["hall-booking-q9ll","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8522b675-be84-4695-8017-8c3e85bf8ace"},{"name":"all_cus","id":"ccad3011-e669-4fee-89fb-d95122e28708","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://hall-booking-q9ll.onrender.com/customer/all","urlObject":{"protocol":"https","path":["customer","all"],"host":["hall-booking-q9ll","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ccad3011-e669-4fee-89fb-d95122e28708"},{"name":"cus_room_count","id":"85688e8b-2ec0-49c6-b1e1-6dbf3b6e3c7a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://hall-booking-q9ll.onrender.com/customer/cus/count","urlObject":{"protocol":"https","path":["customer","cus","count"],"host":["hall-booking-q9ll","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"85688e8b-2ec0-49c6-b1e1-6dbf3b6e3c7a"},{"name":"booking","id":"e2579b7d-a319-476d-a93f-e64501c7c857","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"cusName\": \"guru\",\r\n    \"Date\": \"12/05/2023\",\r\n    \"start_time\": 14,\r\n    \"end_time\": 18,\r\n    \"room_ID\": \"C1\"\r\n\r\n}","options":{"raw":{"language":"json"}}},"url":"https://hall-booking-q9ll.onrender.com/customer/add","urlObject":{"protocol":"https","path":["customer","add"],"host":["hall-booking-q9ll","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e2579b7d-a319-476d-a93f-e64501c7c857"}]}