{"info":{"_postman_id":"57212702-f17e-4b8a-bae2-6f87dc9b87f2","name":"Inn Sync","description":"<html><head></head><body><p>API documentation for Inn Sync - a hotel management system application.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"32409759","collectionId":"57212702-f17e-4b8a-bae2-6f87dc9b87f2","publishedId":"2s9YymHkUC","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-01-23T04:16:10.000Z"},"item":[{"name":"Cabins","item":[{"name":"Create a new cabin","id":"b8a5860c-2031-4737-a362-c411a3945d42","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"045\",\r\n  \"maxCapacity\": 8,\r\n  \"regularPrice\": 900,\r\n  \"discount\": 100,\r\n  \"description\": \"A new cabin description...\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/cabins","urlObject":{"protocol":"http","port":"4000","path":["cabins"],"host":["localhost"],"query":[{"disabled":true,"description":{"content":"<p>easy</p>\n","type":"text/plain"},"key":"name ","value":"011"}],"variable":[]}},"response":[],"_postman_id":"b8a5860c-2031-4737-a362-c411a3945d42"},{"name":"Get cabins","id":"5c88b057-f3fd-48b0-91a9-c7a665a6e810","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:4000/cabins/","urlObject":{"protocol":"http","port":"4000","path":["cabins",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5c88b057-f3fd-48b0-91a9-c7a665a6e810"},{"name":"Update cabin details","id":"dbc713f5-2c4c-4c07-9dac-f0e367a42158","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"http://localhost:4000/cabins/001","urlObject":{"protocol":"http","port":"4000","path":["cabins","001"],"host":["localhost"],"query":[{"disabled":true,"description":{"content":"<p>\"This is test\"</p>\n","type":"text/plain"},"key":"name","value":"070"}],"variable":[]}},"response":[],"_postman_id":"dbc713f5-2c4c-4c07-9dac-f0e367a42158"},{"name":"Delete cabin","id":"5c84ef6f-fa4e-4af8-a25e-c5c0eb94a9e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:4000/cabins/047","urlObject":{"protocol":"http","port":"4000","path":["cabins","047"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5c84ef6f-fa4e-4af8-a25e-c5c0eb94a9e3"}],"id":"af0ce407-0e86-4a8c-8657-57f96c3896a9","description":"<p>Creating, fetching and updating details and deleting cabin.</p>\n","_postman_id":"af0ce407-0e86-4a8c-8657-57f96c3896a9"},{"name":"Bookings","item":[{"name":"Get bookings","id":"53a9ed41-6060-40d9-9bb5-2dc2e3176b6c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:4000/bookings/","urlObject":{"protocol":"http","port":"4000","path":["bookings",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"53a9ed41-6060-40d9-9bb5-2dc2e3176b6c"},{"name":"Create a new booking","id":"7a988e84-af9b-4a1a-ac3b-a627cbaa56e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"bookingId\": \"6\",\r\n  \"startDate\": \"2024-02-10\",\r\n  \"endDate\": \"2024-02-15\",\r\n  \"numNights\": 5,\r\n  \"numGuests\": 3,\r\n  \"totalPrice\": 1400,\r\n  \"status\": \"unconfirmed\",\r\n  \"guests\": { \"fullName\": \"Saurabh Smith\", \"email\": \"saurabh.smith@gmail.com\" },\r\n  \"cabins\": { \"name\": \"Cabin 6\" }\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/bookings/","urlObject":{"protocol":"http","port":"4000","path":["bookings",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7a988e84-af9b-4a1a-ac3b-a627cbaa56e3"},{"name":"Delete a booking","id":"ac236a8e-730e-4fd1-aa34-53c42e562f9b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:4000/bookings/3","urlObject":{"protocol":"http","port":"4000","path":["bookings","3"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ac236a8e-730e-4fd1-aa34-53c42e562f9b"}],"id":"21692a89-ea2a-45b8-9fcb-531c9b78ac5c","description":"<p>Creating, fetching and deleting a booking.</p>\n","_postman_id":"21692a89-ea2a-45b8-9fcb-531c9b78ac5c"},{"name":"Settings","item":[{"name":"Get settings","id":"8fae652b-28f1-4a97-9607-c170f9214b5d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:4000/settings","urlObject":{"protocol":"http","port":"4000","path":["settings"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"8fae652b-28f1-4a97-9607-c170f9214b5d"},{"name":"Update settings","id":"0fa5ec41-ade0-44a6-b947-fe11557fb231","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"minNights\": 1,\r\n  \"maxNights\": 10,\r\n  \"maxGuests\": 10,\r\n  \"breakfastPrice\": 120\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/settings","urlObject":{"protocol":"http","port":"4000","path":["settings"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"0fa5ec41-ade0-44a6-b947-fe11557fb231"}],"id":"9720f476-6645-440a-bb82-71482d33793b","description":"<p>Fetching and updating the hotel settings.</p>\n","_postman_id":"9720f476-6645-440a-bb82-71482d33793b"}]}