{"info":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","description":"<html><head></head><body><p>API endpoints for managing hotel bookings</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"27912762","collectionId":"6b69e506-1631-40dc-b65b-88b49d9a906b","publishedId":"2sAYXEDctG","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-02-14T18:18:12.000Z"},"item":[{"name":"api","item":[{"name":"Amenities","item":[{"name":"{id}","item":[{"name":"Get an amenity by its ID","id":"b2e5b452-5d12-4380-96b0-d1f7b1820c5d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"text/plain"}],"url":"//api/Amenities/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Amenities",":id"],"host":["/"],"query":[],"variable":[{"id":"9ebdd703-2885-4ca1-acf5-4f2139ccadbf","description":{"content":"<p>(Required) The ID of the amenity</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"id"}]}},"response":[{"id":"9de00be2-d766-452c-a2ee-26079595522a","name":"Returns the amenity with the given ID","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"text/plain"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Amenities/:id","host":["/"],"path":["api","Amenities",":id"],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"<uuid>\",\n  \"name\": \"<string>\",\n  \"description\": \"<string>\"\n}"},{"id":"a5af1563-3934-4c73-95ae-2a7eff2a3b04","name":"If the amenity is not found","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Amenities/:id","host":["/"],"path":["api","Amenities",":id"],"variable":[{"key":"id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"b2e5b452-5d12-4380-96b0-d1f7b1820c5d"},{"name":"Update an amenity","id":"45bac0e3-c741-474f-a999-69be5e9f60e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"description\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Amenities/:id","description":"<p>Sample request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>PUT /amenities/{amenityId}\n{\n   \"name\": \"Smart home features\",\n   \"Description\": \"voice-controlled lighting, temperature, Smoke detector and fire alarm\"\n}\n</code></pre>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Amenities",":id"],"host":["/"],"query":[],"variable":[{"id":"79e4da99-8d14-4ae1-98c2-eb6e237e78c5","description":{"content":"<p>(Required) The ID of the amenity to update</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"id"}]}},"response":[{"id":"1c050760-b52f-403f-9c3d-3bf7d64fadbe","name":"Success","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"description\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Amenities/:id","host":["/"],"path":["api","Amenities",":id"],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"ae4a813c-a3a7-456e-af5b-a346d2281844","name":"If the amenity is successfully updated","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"description\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Amenities/:id","host":["/"],"path":["api","Amenities",":id"],"variable":[{"key":"id"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"a9737fc5-2d62-4982-950c-cd9e4fce91cb","name":"If the request data is invalid","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"description\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Amenities/:id","host":["/"],"path":["api","Amenities",":id"],"variable":[{"key":"id"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"2ecb25ea-47bc-4714-8121-71fce92d5285","name":"If the user is not authenticated","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"description\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Amenities/:id","host":["/"],"path":["api","Amenities",":id"],"variable":[{"key":"id"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"31d5dab6-c24a-413c-a11b-8bf6ba754011","name":"If the user is not authorized (not an admin)","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"description\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Amenities/:id","host":["/"],"path":["api","Amenities",":id"],"variable":[{"key":"id"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"ac9aac33-c518-445a-9eba-8c25beb5b6e8","name":"If the amenity is not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"description\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Amenities/:id","host":["/"],"path":["api","Amenities",":id"],"variable":[{"key":"id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"45bac0e3-c741-474f-a999-69be5e9f60e8"},{"name":"Delete an amenity","id":"7cafc345-5d1c-45d7-8407-45480d7ef991","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"//api/Amenities/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Amenities",":id"],"host":["/"],"query":[],"variable":[{"id":"fc259452-e068-4f5d-adc5-8dd4e57875bd","description":{"content":"<p>(Required) The ID of the amenity to delete</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"id"}]}},"response":[{"id":"14414721-f35e-45bf-b077-c3a252281331","name":"Success","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Amenities/:id","host":["/"],"path":["api","Amenities",":id"],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"d4ff3f35-9e79-4fa9-9387-8af0197c1125","name":"If the operation is successfully done","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Amenities/:id","host":["/"],"path":["api","Amenities",":id"],"variable":[{"key":"id"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"d71fc0f7-10a2-4a65-89f7-75d6684254e9","name":"If the user is not authenticated","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Amenities/:id","host":["/"],"path":["api","Amenities",":id"],"variable":[{"key":"id"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"d6ffbe59-ced4-4425-a827-fe16c63ff1db","name":"If the user is not authorized (not an admin)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Amenities/:id","host":["/"],"path":["api","Amenities",":id"],"variable":[{"key":"id"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"7cafc345-5d1c-45d7-8407-45480d7ef991"}],"id":"ed69d57d-c682-4b73-b897-33ea721d1abe","_postman_id":"ed69d57d-c682-4b73-b897-33ea721d1abe","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}},{"name":"Create a new amenity","id":"32dd12a6-6e4e-472c-9abb-51ee254d6dd5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"text/plain"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"description\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Amenities","description":"<p>Sample request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>POST /amenities\n{\n   \"name\": \"Smart home features\",\n   \"Description\": \"voice-controlled lighting, temperature\"\n}\n</code></pre>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Amenities"],"host":["/"],"query":[],"variable":[]}},"response":[{"id":"1c8bbd26-a86f-41c0-a9d1-53642aff5ea1","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"text/plain"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"description\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Amenities"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"<uuid>\",\n  \"name\": \"<string>\",\n  \"description\": \"<string>\"\n}"},{"id":"9a8f9a58-eb07-4b24-8553-4c944bca042f","name":"Returns the newly created amenity","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"description\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Amenities"},"status":"Created","code":201,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"0acb2800-f024-4789-abdb-633a12d87d48","name":"If the request data is invalid","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"description\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Amenities"},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"2bdbf7ac-7ef6-4f06-a1a4-aa214f13a958","name":"If the user is not authenticated","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"description\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Amenities"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"43c47d4b-5aea-47b0-bd00-4c05eb5ab5da","name":"If the user is not authorized (not an admin)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"description\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Amenities"},"status":"Forbidden","code":403,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"32dd12a6-6e4e-472c-9abb-51ee254d6dd5"},{"name":"Retrieves a paginated and optionally sorted list of amenities based on the specified query parameters.","id":"5fb7037e-a309-49b6-9fec-eebc503e720f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"text/plain"}],"url":"//api/Amenities?PageNumber=<integer>&PageSize=<integer>&SearchTerm=<string>&SortColumn=Name&SortOrder=Desc","description":"<p>This endpoint allows clients to fetch amenities with options for sorting, pagination, and filtering.\nThe available query parameters include:</p>\n<ul>\n<li><strong>SortOrder</strong>: Specifies the sorting order (e.g., ascending or descending).</li>\n<li><strong>SortColumn</strong>: Specifies the column to sort by (e.g., name, description).</li>\n<li><strong>PageNumber</strong>: Specifies the page number for pagination.</li>\n<li><strong>PageSize</strong>: Specifies the number of items per page.</li>\n<li><strong>SearchTerm</strong>: Filters amenities based on a search term that matches amenity name or Description.</li>\n</ul>\n<p>Example usage:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET /amenities?sortOrder=asc&amp;sortColumn=name&amp;pageNumber=1&amp;pageSize=10&amp;searchTerm=SmartTV\n</code></pre><p>The response includes paginated metadata in the <code>X-Pagination</code> header and links to related pages (e.g., next, previous).</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Amenities"],"host":["/"],"query":[{"key":"PageNumber","value":"<integer>"},{"key":"PageSize","value":"<integer>"},{"key":"SearchTerm","value":"<string>"},{"key":"SortColumn","value":"Name"},{"key":"SortOrder","value":"Desc"}],"variable":[]}},"response":[{"id":"40b716c0-9e80-423d-b23d-188452fef1cb","name":"Returns the list of amenities that match the query parameters.","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"text/plain"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Amenities?PageNumber=<integer>&PageSize=<integer>&SearchTerm=<string>&SortColumn=Name&SortOrder=Desc","host":["/"],"path":["api","Amenities"],"query":[{"key":"PageNumber","value":"<integer>"},{"key":"PageSize","value":"<integer>"},{"key":"SearchTerm","value":"<string>"},{"key":"SortColumn","value":"Name"},{"key":"SortOrder","value":"Desc"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"id\": \"<uuid>\",\n    \"name\": \"<string>\",\n    \"description\": \"<string>\"\n  },\n  {\n    \"id\": \"<uuid>\",\n    \"name\": \"<string>\",\n    \"description\": \"<string>\"\n  }\n]"},{"id":"94537613-fbb9-43a7-873f-7ae00841938f","name":"Returned if the provided query parameters are invalid.","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Amenities?PageNumber=<integer>&PageSize=<integer>&SearchTerm=<string>&SortColumn=Name&SortOrder=Desc","host":["/"],"path":["api","Amenities"],"query":[{"key":"PageNumber","value":"<integer>"},{"key":"PageSize","value":"<integer>"},{"key":"SearchTerm","value":"<string>"},{"key":"SortColumn","value":"Name"},{"key":"SortOrder","value":"Desc"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"5fb7037e-a309-49b6-9fec-eebc503e720f"}],"id":"1b573c61-66a5-4e97-a511-acc0b4d6ee56","_postman_id":"1b573c61-66a5-4e97-a511-acc0b4d6ee56","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}},{"name":"Authentication","item":[{"name":"RegisterAdmin","item":[{"name":"Register an admin","id":"04abc4ca-267f-4df8-9308-9a0f5a17cfed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"email\": \"<string>\",\n  \"password\": \"<string>\",\n  \"confirmPassword\": \"<string>\",\n  \"username\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Authentication/RegisterAdmin","description":"<p>Sample request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>POST /api/Authentication/RegisterAdmin\n{\n  \"email\": \"Sample\",\n  \"password\": \"Sample_Password\",\n  \"confirmPassword\": \"Sample_Password\",\n  \"username\": \"Sample_UserName\"\n}\n</code></pre>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Authentication","RegisterAdmin"],"host":["/"],"query":[],"variable":[]}},"response":[{"id":"9ce3eb95-4897-43ef-8e85-33b5ff8b588c","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"email\": \"<string>\",\n  \"password\": \"<string>\",\n  \"confirmPassword\": \"<string>\",\n  \"username\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Authentication/RegisterAdmin"},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"3504869e-bdbe-4ac1-b571-5028ec8e23f4","name":"Admin registered successfully","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"email\": \"<string>\",\n  \"password\": \"<string>\",\n  \"confirmPassword\": \"<string>\",\n  \"username\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Authentication/RegisterAdmin"},"status":"Created","code":201,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"adbdd71b-b208-4957-ae17-6b58720bd0c1","name":"If the request data is invalid","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"email\": \"<string>\",\n  \"password\": \"<string>\",\n  \"confirmPassword\": \"<string>\",\n  \"username\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Authentication/RegisterAdmin"},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"04abc4ca-267f-4df8-9308-9a0f5a17cfed"}],"id":"43f5280d-134d-4d07-b821-14a04a58aee6","_postman_id":"43f5280d-134d-4d07-b821-14a04a58aee6","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}},{"name":"RegisterGuest","item":[{"name":"Register a guest","id":"0d0d8fad-b5af-42b6-beb8-22bbeccb2c4a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"email\": \"<string>\",\n  \"password\": \"<string>\",\n  \"confirmPassword\": \"<string>\",\n  \"username\": \"<string>\",\n  \"firstName\": \"<string>\",\n  \"lastName\": \"<string>\",\n  \"dateOfBirth\": \"<date>\",\n  \"address\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Authentication/RegisterGuest","description":"<p>Sample request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>POST /api/Authentication/RegisterGuest\n{\n  \"email\": \"Sample\",\n  \"password\": \"Sample_Password\",\n  \"confirmPassword\": \"Sample_Password\",\n  \"username\": \"Sample_UserName\",\n  \"firstName\": \"Sample_firstName\",\n  \"lastName\": \"Sample_lastName\",\n  \"dateOfBirth\": \"2000-01-24\",\n  \"address\": \"Sample\"\n}\n</code></pre>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Authentication","RegisterGuest"],"host":["/"],"query":[],"variable":[]}},"response":[{"id":"a6e29e34-1e3d-4d08-bf24-e03b924f90ab","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"email\": \"<string>\",\n  \"password\": \"<string>\",\n  \"confirmPassword\": \"<string>\",\n  \"username\": \"<string>\",\n  \"firstName\": \"<string>\",\n  \"lastName\": \"<string>\",\n  \"dateOfBirth\": \"<date>\",\n  \"address\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Authentication/RegisterGuest"},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"72045eef-103e-4b99-97e8-e4b5d4971f3f","name":"Guest registered successfully","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"email\": \"<string>\",\n  \"password\": \"<string>\",\n  \"confirmPassword\": \"<string>\",\n  \"username\": \"<string>\",\n  \"firstName\": \"<string>\",\n  \"lastName\": \"<string>\",\n  \"dateOfBirth\": \"<date>\",\n  \"address\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Authentication/RegisterGuest"},"status":"Created","code":201,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"3f7b946a-8280-44de-bffe-040425baaaa9","name":"If the request data is invalid","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"email\": \"<string>\",\n  \"password\": \"<string>\",\n  \"confirmPassword\": \"<string>\",\n  \"username\": \"<string>\",\n  \"firstName\": \"<string>\",\n  \"lastName\": \"<string>\",\n  \"dateOfBirth\": \"<date>\",\n  \"address\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Authentication/RegisterGuest"},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"0d0d8fad-b5af-42b6-beb8-22bbeccb2c4a"}],"id":"25eba7a4-fe28-4a4d-8ff8-6a4e06968557","_postman_id":"25eba7a4-fe28-4a4d-8ff8-6a4e06968557","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}},{"name":"login","item":[{"name":"Login a user","id":"29b4ff86-dd4a-4e43-83ae-349605e3c89c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"text/plain"}],"body":{"mode":"raw","raw":"{\n  \"email\": \"<string>\",\n  \"password\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Authentication/login","description":"<p>Sample request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>POST /api/Authentication/login\n{\n   \"email\": \"sample@user.com\",\n   \"password\": \"sample_password\"\n}\n</code></pre>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Authentication","login"],"host":["/"],"query":[],"variable":[]}},"response":[{"id":"be56b0cd-0d76-440c-8edd-c188e024942d","name":"Login successful","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"text/plain"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"email\": \"<string>\",\n  \"password\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Authentication/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"userId\": \"<string>\",\n  \"token\": \"<string>\"\n}"},{"id":"fb534b85-5fa5-4a1e-aaa4-d64dc05bdd69","name":"If the request data is invalid","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"email\": \"<string>\",\n  \"password\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Authentication/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"29b4ff86-dd4a-4e43-83ae-349605e3c89c"}],"id":"a89f6a5e-0257-4aa0-a0ae-f118cda121b6","_postman_id":"a89f6a5e-0257-4aa0-a0ae-f118cda121b6","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}}],"id":"f9beed9b-98e7-41e0-9ef7-5d21d4870332","_postman_id":"f9beed9b-98e7-41e0-9ef7-5d21d4870332","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}},{"name":"Bookings","item":[{"name":"{id}","item":[{"name":"invoice","item":[{"name":"Get an invoice by booking ID","id":"680ced83-b7da-45f2-9bef-cb63e5725505","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"text/plain"}],"url":"//api/Bookings/:id/invoice","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Bookings",":id","invoice"],"host":["/"],"query":[],"variable":[{"id":"55b7e2f7-3d8d-4565-81b9-e9a67284cd54","description":{"content":"<p>(Required) The booking ID</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"id"}]}},"response":[{"id":"477acbd2-1680-4da4-b99b-26692bd63a8e","name":"Returns the invoice with the given ID","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"text/plain"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Bookings/:id/invoice","host":["/"],"path":["api","Bookings",":id","invoice"],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"confirmationId\": \"<uuid>\",\n  \"totalPrice\": \"<double>\",\n  \"totalPriceAfterDiscount\": \"<double>\",\n  \"rooms\": [\n    {\n      \"id\": \"<uuid>\",\n      \"roomNumber\": \"<integer>\",\n      \"adultsCapacity\": \"<integer>\",\n      \"childrenCapacity\": \"<integer>\",\n      \"roomType\": \"Standard\",\n      \"pricePerNight\": \"<double>\",\n      \"pricePerNightAfterDiscount\": \"<double>\",\n      \"numberOfNights\": \"<integer>\",\n      \"totalRoomPrice\": \"<double>\",\n      \"totalRoomPriceAfterDiscount\": \"<double>\"\n    },\n    {\n      \"id\": \"<uuid>\",\n      \"roomNumber\": \"<integer>\",\n      \"adultsCapacity\": \"<integer>\",\n      \"childrenCapacity\": \"<integer>\",\n      \"roomType\": \"Standard\",\n      \"pricePerNight\": \"<double>\",\n      \"pricePerNightAfterDiscount\": \"<double>\",\n      \"numberOfNights\": \"<integer>\",\n      \"totalRoomPrice\": \"<double>\",\n      \"totalRoomPriceAfterDiscount\": \"<double>\"\n    }\n  ],\n  \"hotel\": {\n    \"id\": \"<uuid>\",\n    \"name\": \"<string>\",\n    \"cityName\": \"<string>\",\n    \"street\": \"<string>\"\n  },\n  \"guestId\": \"<uuid>\",\n  \"guestFullName\": \"<string>\",\n  \"checkInDate\": \"<date>\",\n  \"checkOutDate\": \"<date>\",\n  \"numberOfAdults\": \"<integer>\",\n  \"numberOfChildren\": \"<integer>\"\n}"},{"id":"16124b2e-5c0c-4064-9d00-8eb9b3ecb24d","name":"If there is no booking related to the given ID","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Bookings/:id/invoice","host":["/"],"path":["api","Bookings",":id","invoice"],"variable":[{"key":"id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"680ced83-b7da-45f2-9bef-cb63e5725505"}],"id":"48182c78-715a-476b-9359-8e5950b45e58","_postman_id":"48182c78-715a-476b-9359-8e5950b45e58","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}},{"name":"pdf","item":[{"name":"Retrieve a booking invoice as a PDF file to download it","id":"cd2d4451-eb5f-4654-8620-74aecec5566f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"//api/Bookings/:id/pdf","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Bookings",":id","pdf"],"host":["/"],"query":[],"variable":[{"id":"41359338-7146-4066-aa52-463711b41f63","description":{"content":"<p>(Required) </p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"id"}]}},"response":[{"id":"5300024a-2f55-4902-89aa-e6c7c00ddcbd","name":"Returns the invoice with the given ID","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Bookings/:id/pdf","host":["/"],"path":["api","Bookings",":id","pdf"],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"716d2f27-9470-4882-9f13-2f37688e8575","name":"If the hotel/room or guest is not found","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Bookings/:id/pdf","host":["/"],"path":["api","Bookings",":id","pdf"],"variable":[{"key":"id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"cd2d4451-eb5f-4654-8620-74aecec5566f"}],"id":"bcc0f75f-06d6-48b7-8290-dd8a1297b909","_postman_id":"bcc0f75f-06d6-48b7-8290-dd8a1297b909","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}},{"name":"Get a booking by its ID","id":"b8996632-d54a-461a-9198-c8cfa21ddff9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"text/plain"}],"url":"//api/Bookings/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Bookings",":id"],"host":["/"],"query":[],"variable":[{"id":"911588a8-7f7d-4fcd-979e-577b4ea9e45b","description":{"content":"<p>(Required) The ID of the booking</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"id"}]}},"response":[{"id":"b4b7927f-2664-47ed-ba59-611b2fa94e61","name":"Returns the booking with the given ID","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"text/plain"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Bookings/:id","host":["/"],"path":["api","Bookings",":id"],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"confirmationId\": \"<uuid>\",\n  \"checkInDate\": \"<date>\",\n  \"checkOutDate\": \"<date>\",\n  \"numberOfAdults\": \"<integer>\",\n  \"numberOfChildren\": \"<integer>\",\n  \"guestFullName\": \"<string>\",\n  \"guestId\": \"<uuid>\",\n  \"hotelName\": \"<string>\",\n  \"hotelId\": \"<uuid>\",\n  \"price\": \"<double>\",\n  \"roomNumbers\": [\n    \"<integer>\",\n    \"<integer>\"\n  ]\n}"},{"id":"63acc21f-4be7-4622-9c29-9621faf9821a","name":"When the booking is not found","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Bookings/:id","host":["/"],"path":["api","Bookings",":id"],"variable":[{"key":"id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"b8996632-d54a-461a-9198-c8cfa21ddff9"},{"name":"Delete a booking","id":"1f7c7ffc-1206-452a-bd78-609839703ae6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"//api/Bookings/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Bookings",":id"],"host":["/"],"query":[],"variable":[{"id":"6908409a-adb3-4d7d-870c-236f47d054eb","description":{"content":"<p>(Required) The ID of the booking to delete</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"id"}]}},"response":[{"id":"ae4a842c-e7e1-4f9f-ba62-f92fb6bbe707","name":"Success","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Bookings/:id","host":["/"],"path":["api","Bookings",":id"],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"80f57f9e-2b2b-44a7-8156-a9034b4d66ee","name":"If the operation is successfully done","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Bookings/:id","host":["/"],"path":["api","Bookings",":id"],"variable":[{"key":"id"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"d563f4b1-2143-4c05-9057-e6d15050a810","name":"If the user is not authenticated","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Bookings/:id","host":["/"],"path":["api","Bookings",":id"],"variable":[{"key":"id"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"5a3df1b4-37dd-494e-94b1-70d8e7a2d0be","name":"If the user is not authorized","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Bookings/:id","host":["/"],"path":["api","Bookings",":id"],"variable":[{"key":"id"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"1f7c7ffc-1206-452a-bd78-609839703ae6"}],"id":"6f2f074e-3e2a-4cf1-b71c-88954d8c79c0","_postman_id":"6f2f074e-3e2a-4cf1-b71c-88954d8c79c0","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}},{"name":"Create a new booking, and receive the invoice by email","id":"fe052dd7-d46c-40d4-8ccf-76a6b3857422","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"text/plain"}],"body":{"mode":"raw","raw":"{\n  \"roomIds\": [\n    \"<uuid>\",\n    \"<uuid>\"\n  ],\n  \"hotelId\": \"<uuid>\",\n  \"numberOfAdults\": \"<integer>\",\n  \"numberOfChildren\": \"<integer>\",\n  \"checkInDate\": \"<dateTime>\",\n  \"checkOutDate\": \"<dateTime>\",\n  \"userRemarks\": \"<string>\",\n  \"paymentMethod\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Bookings","description":"<p>Sample request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>POST /booking\n{\n   \"roomsId\": [\"65d26773-a8b9-4695-bc61-0b717bd97e14\", \"98726773-a8b9-4695-bc61-0b717bd97e14\"],\n   \"hotelId\": \"87c26773-a8b9-4695-bc61-0b717bd97e14\",\n   \"checkInDate\": \"2025-1-02\",\n   \"checkOutDate\": \"2025-01-27\",\n   \"numberOfAdults\": 2,\n   \"numberOfChildren\": 1,\n   \"userRemarks\": \"Please make sure there’s a mini-fridge in the room.\",\n   \"paymentMethod\": \"Credit Card\"\n}\n</code></pre>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Bookings"],"host":["/"],"query":[],"variable":[]}},"response":[{"id":"f890dcd7-260a-424d-8547-30ffa5e14d78","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"text/plain"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"roomIds\": [\n    \"<uuid>\",\n    \"<uuid>\"\n  ],\n  \"hotelId\": \"<uuid>\",\n  \"numberOfAdults\": \"<integer>\",\n  \"numberOfChildren\": \"<integer>\",\n  \"checkInDate\": \"<dateTime>\",\n  \"checkOutDate\": \"<dateTime>\",\n  \"userRemarks\": \"<string>\",\n  \"paymentMethod\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Bookings"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"confirmationId\": \"<uuid>\",\n  \"checkInDate\": \"<date>\",\n  \"checkOutDate\": \"<date>\",\n  \"numberOfAdults\": \"<integer>\",\n  \"numberOfChildren\": \"<integer>\",\n  \"guestFullName\": \"<string>\",\n  \"guestId\": \"<uuid>\",\n  \"hotelName\": \"<string>\",\n  \"hotelId\": \"<uuid>\",\n  \"price\": \"<double>\",\n  \"roomNumbers\": [\n    \"<integer>\",\n    \"<integer>\"\n  ]\n}"},{"id":"34df13ec-aff4-44a2-8bfa-dc0023ac4507","name":"Returns the newly created booking","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"roomIds\": [\n    \"<uuid>\",\n    \"<uuid>\"\n  ],\n  \"hotelId\": \"<uuid>\",\n  \"numberOfAdults\": \"<integer>\",\n  \"numberOfChildren\": \"<integer>\",\n  \"checkInDate\": \"<dateTime>\",\n  \"checkOutDate\": \"<dateTime>\",\n  \"userRemarks\": \"<string>\",\n  \"paymentMethod\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Bookings"},"status":"Created","code":201,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"3018107b-c2eb-4562-8cf7-03a4f2011e2d","name":"If the request data is invalid","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"roomIds\": [\n    \"<uuid>\",\n    \"<uuid>\"\n  ],\n  \"hotelId\": \"<uuid>\",\n  \"numberOfAdults\": \"<integer>\",\n  \"numberOfChildren\": \"<integer>\",\n  \"checkInDate\": \"<dateTime>\",\n  \"checkOutDate\": \"<dateTime>\",\n  \"userRemarks\": \"<string>\",\n  \"paymentMethod\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Bookings"},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"ad5f2eed-84b0-442c-9e6c-8e8b2fd059bc","name":"If the user is not authenticated","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"roomIds\": [\n    \"<uuid>\",\n    \"<uuid>\"\n  ],\n  \"hotelId\": \"<uuid>\",\n  \"numberOfAdults\": \"<integer>\",\n  \"numberOfChildren\": \"<integer>\",\n  \"checkInDate\": \"<dateTime>\",\n  \"checkOutDate\": \"<dateTime>\",\n  \"userRemarks\": \"<string>\",\n  \"paymentMethod\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Bookings"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"17806362-97af-48e9-a68b-11ce0b416a6f","name":"If the user is not authorized","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"roomIds\": [\n    \"<uuid>\",\n    \"<uuid>\"\n  ],\n  \"hotelId\": \"<uuid>\",\n  \"numberOfAdults\": \"<integer>\",\n  \"numberOfChildren\": \"<integer>\",\n  \"checkInDate\": \"<dateTime>\",\n  \"checkOutDate\": \"<dateTime>\",\n  \"userRemarks\": \"<string>\",\n  \"paymentMethod\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Bookings"},"status":"Forbidden","code":403,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"17e7e06f-5fb1-4afc-848d-c46865bf0551","name":"If the hotel/room or guest is not found","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"roomIds\": [\n    \"<uuid>\",\n    \"<uuid>\"\n  ],\n  \"hotelId\": \"<uuid>\",\n  \"numberOfAdults\": \"<integer>\",\n  \"numberOfChildren\": \"<integer>\",\n  \"checkInDate\": \"<dateTime>\",\n  \"checkOutDate\": \"<dateTime>\",\n  \"userRemarks\": \"<string>\",\n  \"paymentMethod\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Bookings"},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"fe052dd7-d46c-40d4-8ccf-76a6b3857422"}],"id":"482d460d-3706-4614-af9f-9775b781eaf6","_postman_id":"482d460d-3706-4614-af9f-9775b781eaf6","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}},{"name":"Cities","item":[{"name":"{id}","item":[{"name":"images","item":[{"name":"Upload an image to a city","id":"2934afae-fb17-47b9-9d91-bd1c9695bb85","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","value":null}]},"url":"//api/Cities/:id/images?alternativeText=<string>&thumbnail=false","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Cities",":id","images"],"host":["/"],"query":[{"description":{"content":"<p>Alternative text (Alt)</p>\n","type":"text/plain"},"key":"alternativeText","value":"<string>"},{"description":{"content":"<p>Indicates if the image should be used as thumbnail</p>\n","type":"text/plain"},"key":"thumbnail","value":"false"}],"variable":[{"id":"2e6e321c-727d-4ac1-aada-b141a42fe938","description":{"content":"<p>(Required) The ID of the city to upload the image</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"id"}]}},"response":[{"id":"81792620-8a87-44d4-a303-dd26638a0830","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":[]}]},"url":{"raw":"//api/Cities/:id/images?alternativeText=<string>&thumbnail=false","host":["/"],"path":["api","Cities",":id","images"],"query":[{"description":"Alternative text (Alt)","key":"alternativeText","value":"<string>"},{"description":"Indicates if the image should be used as thumbnail","key":"thumbnail","value":"false"}],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"9157820e-0ce8-4133-a683-21858d63b651","name":"If the image is successfully uploaded","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":[]}]},"url":{"raw":"//api/Cities/:id/images?alternativeText=<string>&thumbnail=false","host":["/"],"path":["api","Cities",":id","images"],"query":[{"description":"Alternative text (Alt)","key":"alternativeText","value":"<string>"},{"description":"Indicates if the image should be used as thumbnail","key":"thumbnail","value":"false"}],"variable":[{"key":"id"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"5e68b07d-0a52-482a-8b79-299a691ec68a","name":"If the request data is invalid","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":[]}]},"url":{"raw":"//api/Cities/:id/images?alternativeText=<string>&thumbnail=false","host":["/"],"path":["api","Cities",":id","images"],"query":[{"description":"Alternative text (Alt)","key":"alternativeText","value":"<string>"},{"description":"Indicates if the image should be used as thumbnail","key":"thumbnail","value":"false"}],"variable":[{"key":"id"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"abe3fe71-4b7a-414f-a583-8b9195694cb4","name":"If the user is not authenticated","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":[]}]},"url":{"raw":"//api/Cities/:id/images?alternativeText=<string>&thumbnail=false","host":["/"],"path":["api","Cities",":id","images"],"query":[{"description":"Alternative text (Alt)","key":"alternativeText","value":"<string>"},{"description":"Indicates if the image should be used as thumbnail","key":"thumbnail","value":"false"}],"variable":[{"key":"id"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"e5d8b3df-f117-4ac0-942c-7110f4d3f66f","name":"If the user is not authorized (not an admin)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":[]}]},"url":{"raw":"//api/Cities/:id/images?alternativeText=<string>&thumbnail=false","host":["/"],"path":["api","Cities",":id","images"],"query":[{"description":"Alternative text (Alt)","key":"alternativeText","value":"<string>"},{"description":"Indicates if the image should be used as thumbnail","key":"thumbnail","value":"false"}],"variable":[{"key":"id"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"9d46c65f-59e1-4e1f-8881-11100969cd38","name":"If the city is not found","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":[]}]},"url":{"raw":"//api/Cities/:id/images?alternativeText=<string>&thumbnail=false","host":["/"],"path":["api","Cities",":id","images"],"query":[{"description":"Alternative text (Alt)","key":"alternativeText","value":"<string>"},{"description":"Indicates if the image should be used as thumbnail","key":"thumbnail","value":"false"}],"variable":[{"key":"id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"2934afae-fb17-47b9-9d91-bd1c9695bb85"}],"id":"dd17a9fa-456d-4614-874b-48988c5208ab","_postman_id":"dd17a9fa-456d-4614-874b-48988c5208ab","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}},{"name":"Get a city by its ID","id":"fa310d72-1742-4cd8-9c90-ac5d64c95354","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"text/plain"}],"url":"//api/Cities/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Cities",":id"],"host":["/"],"query":[],"variable":[{"id":"a096bf9b-4f54-4cfb-a4d0-608fc7f358fb","description":{"content":"<p>(Required) The ID of the city</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"id"}]}},"response":[{"id":"26e45499-bb43-4b6a-b320-ac998f599b8f","name":"Returns the city with the given ID","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"text/plain"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Cities/:id","host":["/"],"path":["api","Cities",":id"],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"<uuid>\",\n  \"creationDate\": \"<dateTime>\",\n  \"lastModified\": \"<dateTime>\",\n  \"name\": \"<string>\",\n  \"country\": \"<string>\",\n  \"postOffice\": \"<string>\",\n  \"numberOfHotels\": \"<integer>\",\n  \"hotels\": [\n    {\n      \"id\": \"<uuid>\",\n      \"creationDate\": \"<dateTime>\",\n      \"lastModified\": \"<dateTime>\",\n      \"name\": \"<string>\",\n      \"owner\": \"<string>\",\n      \"starRate\": \"<integer>\",\n      \"roomsNumber\": \"<integer>\",\n      \"location\": {\n        \"longitude\": \"<double>\",\n        \"latitude\": \"<double>\"\n      },\n      \"street\": \"<string>\",\n      \"hotelImage\": {\n        \"imageUrl\": \"<string>\",\n        \"alternativeText\": \"<string>\"\n      }\n    },\n    {\n      \"id\": \"<uuid>\",\n      \"creationDate\": \"<dateTime>\",\n      \"lastModified\": \"<dateTime>\",\n      \"name\": \"<string>\",\n      \"owner\": \"<string>\",\n      \"starRate\": \"<integer>\",\n      \"roomsNumber\": \"<integer>\",\n      \"location\": {\n        \"longitude\": \"<double>\",\n        \"latitude\": \"<double>\"\n      },\n      \"street\": \"<string>\",\n      \"hotelImage\": {\n        \"imageUrl\": \"<string>\",\n        \"alternativeText\": \"<string>\"\n      }\n    }\n  ],\n  \"images\": [\n    {\n      \"imageUrl\": \"<string>\",\n      \"alternativeText\": \"<string>\"\n    },\n    {\n      \"imageUrl\": \"<string>\",\n      \"alternativeText\": \"<string>\"\n    }\n  ]\n}"},{"id":"c7065c7a-0012-49af-9102-9eafb26c4b90","name":"If the city is not found","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Cities/:id","host":["/"],"path":["api","Cities",":id"],"variable":[{"key":"id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"fa310d72-1742-4cd8-9c90-ac5d64c95354"},{"name":"Delete a city","id":"34165c0e-0c01-4067-9f73-d57525b8925f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"//api/Cities/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Cities",":id"],"host":["/"],"query":[],"variable":[{"id":"eb2cb73e-c07d-4555-babd-dd8b63d44d15","description":{"content":"<p>(Required) The ID of the city to delete</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"id"}]}},"response":[{"id":"fd4f8b2e-33cc-4ad9-8f35-834bd7b6761e","name":"Success","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Cities/:id","host":["/"],"path":["api","Cities",":id"],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"145b2775-7634-45ab-b9d3-2ef9ebc8d201","name":"If the operation is successfully done","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Cities/:id","host":["/"],"path":["api","Cities",":id"],"variable":[{"key":"id"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"5fe746ef-0c87-47d2-84f2-fa406e4baed1","name":"If the user is not authenticated","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Cities/:id","host":["/"],"path":["api","Cities",":id"],"variable":[{"key":"id"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"99f58fb0-6c50-4c68-ac29-4f5c8a147235","name":"If the user is not authorized (not an admin)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Cities/:id","host":["/"],"path":["api","Cities",":id"],"variable":[{"key":"id"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"34165c0e-0c01-4067-9f73-d57525b8925f"},{"name":"Update a city","id":"23bdb0d3-6fa2-43d3-b502-3477ba7419ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"country\": \"<string>\",\n  \"postOffice\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Cities/:id","description":"<p>Sample request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>PUT /cities/{cityId}\n{\n   \"name\": \"Paris\",\n   \"country\": \"France\",\n   \"postOffice\": \"98745\"\n}\n</code></pre>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Cities",":id"],"host":["/"],"query":[],"variable":[{"id":"d430c93f-f535-4d90-9e61-f318525964c8","description":{"content":"<p>(Required) The ID of the city to update</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"id"}]}},"response":[{"id":"4920f6f7-4b59-4883-9900-f1f2ef004474","name":"Success","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"country\": \"<string>\",\n  \"postOffice\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Cities/:id","host":["/"],"path":["api","Cities",":id"],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"2c6b08c4-d701-4048-8500-ed330c7ee7c9","name":"If the city is updated","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"country\": \"<string>\",\n  \"postOffice\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Cities/:id","host":["/"],"path":["api","Cities",":id"],"variable":[{"key":"id"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"de9c1a74-acdc-43b6-ba57-cb6f3d8c1161","name":"If the request data is invalid","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"country\": \"<string>\",\n  \"postOffice\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Cities/:id","host":["/"],"path":["api","Cities",":id"],"variable":[{"key":"id"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"0a7f0bbb-2e3c-4171-907b-ee31793db7b4","name":"If the user is not authenticated","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"country\": \"<string>\",\n  \"postOffice\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Cities/:id","host":["/"],"path":["api","Cities",":id"],"variable":[{"key":"id"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"1411c9d6-5bcb-4044-91f3-2f52739eeaef","name":"If the user is not authorized (not an admin)","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"country\": \"<string>\",\n  \"postOffice\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Cities/:id","host":["/"],"path":["api","Cities",":id"],"variable":[{"key":"id"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"2d8a4ce4-d894-42a7-9a23-92e2887d7822","name":"If the city is not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"country\": \"<string>\",\n  \"postOffice\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Cities/:id","host":["/"],"path":["api","Cities",":id"],"variable":[{"key":"id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"23bdb0d3-6fa2-43d3-b502-3477ba7419ee"}],"id":"2c5b978f-f1f4-4adc-9627-41eedbdecb70","_postman_id":"2c5b978f-f1f4-4adc-9627-41eedbdecb70","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}},{"name":"trending-destinations","item":[{"name":"Retrieves the top N most visited cities, where N is 5 by default.","id":"8a3c3daf-9d07-4d8c-884e-42d93aa3379c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"text/plain"}],"url":"//api/Cities/trending-destinations?count=5","description":"<p>This endpoint provides a list of the most visited cities, serving as a curated selection of trending travel destinations.\nEach entry in the response includes key details such as:</p>\n<ul>\n<li>The city's unique identifier.</li>\n<li>The city's name.</li>\n<li>A visually appealing thumbnail image.</li>\n</ul>\n<p>The number of destinations retrieved can be adjusted by specifying the count parameter. \nIf the parameter is omitted, the default value of 5 is used.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Cities","trending-destinations"],"host":["/"],"query":[{"description":{"content":"<p>The number of trending destinations to retrieve. Defaults to 5 if no value is provided.</p>\n","type":"text/plain"},"key":"count","value":"5"}],"variable":[]}},"response":[{"id":"6dc298f4-7e70-462c-bea5-7dfe0d04a35c","name":"Returns the top N most visited cities, with N defaulting to 5 if not specified.","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"text/plain"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Cities/trending-destinations?count=5","host":["/"],"path":["api","Cities","trending-destinations"],"query":[{"description":"The number of trending destinations to retrieve. Defaults to 5 if no value is provided.","key":"count","value":"5"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"id\": \"<uuid>\",\n    \"name\": \"<string>\",\n    \"country\": \"<string>\",\n    \"cityImage\": {\n      \"imageUrl\": \"<string>\",\n      \"alternativeText\": \"<string>\"\n    }\n  },\n  {\n    \"id\": \"<uuid>\",\n    \"name\": \"<string>\",\n    \"country\": \"<string>\",\n    \"cityImage\": {\n      \"imageUrl\": \"<string>\",\n      \"alternativeText\": \"<string>\"\n    }\n  }\n]"}],"_postman_id":"8a3c3daf-9d07-4d8c-884e-42d93aa3379c"}],"id":"4553ba59-c823-4c54-94d1-33a3d0d08a61","_postman_id":"4553ba59-c823-4c54-94d1-33a3d0d08a61","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}},{"name":"Create a new city","id":"2d57ad03-ffe6-4bbe-b628-ac3053931a93","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"text/plain"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"country\": \"<string>\",\n  \"postOffice\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Cities","description":"<p>Sample request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>POST /cities\n{\n   \"name\": \"Paris\",\n   \"country\": \"France\",\n   \"postOffice\": \"45651\"\n}\n</code></pre>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Cities"],"host":["/"],"query":[],"variable":[]}},"response":[{"id":"a674e7d3-fc3f-4183-b1ce-1429a09b0ce6","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"text/plain"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"country\": \"<string>\",\n  \"postOffice\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Cities"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"<uuid>\",\n  \"creationDate\": \"<dateTime>\",\n  \"lastModified\": \"<dateTime>\",\n  \"name\": \"<string>\",\n  \"country\": \"<string>\",\n  \"postOffice\": \"<string>\",\n  \"numberOfHotels\": \"<integer>\",\n  \"cityImage\": {\n    \"imageUrl\": \"<string>\",\n    \"alternativeText\": \"<string>\"\n  }\n}"},{"id":"542aed89-cb06-4430-86ca-cc2a2ff858a9","name":"Returns the newly created city","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"country\": \"<string>\",\n  \"postOffice\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Cities"},"status":"Created","code":201,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"a52c2df7-0b0a-4286-b32c-2ce897b86705","name":"If the request data is invalid","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"country\": \"<string>\",\n  \"postOffice\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Cities"},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"e5c9d847-ce92-460e-abc3-b5c396e96922","name":"If the user is not authenticated","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"country\": \"<string>\",\n  \"postOffice\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Cities"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"fea998c8-a218-427f-9c51-9340ab1b0ed6","name":"If the user is not authorized (not an admin)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"country\": \"<string>\",\n  \"postOffice\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Cities"},"status":"Forbidden","code":403,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"2d57ad03-ffe6-4bbe-b628-ac3053931a93"},{"name":"Retrieves a paginated and optionally sorted list of cities based on the specified query parameters.","id":"bf5e979d-9847-4dc6-9431-478d9acb8d85","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"text/plain"}],"url":"//api/Cities?PageNumber=<integer>&PageSize=<integer>&SearchTerm=<string>&SortColumn=CreationDate&SortOrder=Desc","description":"<p>This endpoint allows clients to fetch cities with options for sorting, pagination, and filtering.\nThe available query parameters include:</p>\n<ul>\n<li><strong>SortOrder</strong>: Specifies the sorting order (e.g., ascending or descending).</li>\n<li><strong>SortColumn</strong>: Specifies the column to sort by (e.g., name).</li>\n<li><strong>PageNumber</strong>: Specifies the page number for pagination.</li>\n<li><strong>PageSize</strong>: Specifies the number of items per page.</li>\n<li><strong>SearchTerm</strong>: Filters cities based on a search term that matches city names.</li>\n</ul>\n<p>Example usage:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET /cities?sortOrder=asc&amp;sortColumn=name&amp;pageNumber=1&amp;pageSize=10&amp;searchTerm=paris\n</code></pre><p>The response includes paginated metadata in the <code>X-Pagination</code> header and links to related pages (e.g., next, previous).</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Cities"],"host":["/"],"query":[{"key":"PageNumber","value":"<integer>"},{"key":"PageSize","value":"<integer>"},{"key":"SearchTerm","value":"<string>"},{"key":"SortColumn","value":"CreationDate"},{"key":"SortOrder","value":"Desc"}],"variable":[]}},"response":[{"id":"5506973d-03e3-4463-adda-ddd5f1fccc37","name":"Returns the list of cities that match the query parameters.","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"text/plain"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Cities?PageNumber=<integer>&PageSize=<integer>&SearchTerm=<string>&SortColumn=CreationDate&SortOrder=Desc","host":["/"],"path":["api","Cities"],"query":[{"key":"PageNumber","value":"<integer>"},{"key":"PageSize","value":"<integer>"},{"key":"SearchTerm","value":"<string>"},{"key":"SortColumn","value":"CreationDate"},{"key":"SortOrder","value":"Desc"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"id\": \"<uuid>\",\n    \"creationDate\": \"<dateTime>\",\n    \"lastModified\": \"<dateTime>\",\n    \"name\": \"<string>\",\n    \"country\": \"<string>\",\n    \"postOffice\": \"<string>\",\n    \"numberOfHotels\": \"<integer>\",\n    \"cityImage\": {\n      \"imageUrl\": \"<string>\",\n      \"alternativeText\": \"<string>\"\n    }\n  },\n  {\n    \"id\": \"<uuid>\",\n    \"creationDate\": \"<dateTime>\",\n    \"lastModified\": \"<dateTime>\",\n    \"name\": \"<string>\",\n    \"country\": \"<string>\",\n    \"postOffice\": \"<string>\",\n    \"numberOfHotels\": \"<integer>\",\n    \"cityImage\": {\n      \"imageUrl\": \"<string>\",\n      \"alternativeText\": \"<string>\"\n    }\n  }\n]"},{"id":"c1d8c7c4-dafc-4393-bc1c-3870f6c43888","name":"Returned if the provided query parameters are invalid.","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Cities?PageNumber=<integer>&PageSize=<integer>&SearchTerm=<string>&SortColumn=CreationDate&SortOrder=Desc","host":["/"],"path":["api","Cities"],"query":[{"key":"PageNumber","value":"<integer>"},{"key":"PageSize","value":"<integer>"},{"key":"SearchTerm","value":"<string>"},{"key":"SortColumn","value":"CreationDate"},{"key":"SortOrder","value":"Desc"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"bf5e979d-9847-4dc6-9431-478d9acb8d85"}],"id":"f0261ddd-f82e-4e1c-a715-90a48a262e4b","_postman_id":"f0261ddd-f82e-4e1c-a715-90a48a262e4b","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}},{"name":"rooms","item":[{"name":"{roomId}","item":[{"name":"discounts","item":[{"name":"{id}","item":[{"name":"Get a discount by its ID","id":"a4359c63-cce2-4d92-aa91-5d85fb77e709","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"text/plain"}],"url":"//api/rooms/:roomId/discounts/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","rooms",":roomId","discounts",":id"],"host":["/"],"query":[],"variable":[{"id":"a6a8580e-4203-485f-9762-99876128f36d","description":{"content":"<p>(Required) The ID of the room</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"roomId"},{"id":"d42fdd2b-9937-4e01-ae5e-dd8368ac48f9","description":{"content":"<p>(Required) The ID of the discount</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"id"}]}},"response":[{"id":"8c527a3e-3244-4851-8616-74516e8af676","name":"Returns the discount with the given ID","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"text/plain"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/rooms/:roomId/discounts/:id","host":["/"],"path":["api","rooms",":roomId","discounts",":id"],"variable":[{"key":"roomId"},{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"<uuid>\",\n  \"roomId\": \"<uuid>\",\n  \"percentage\": \"<double>\",\n  \"originalPrice\": \"<double>\",\n  \"discountedPrice\": \"<double>\",\n  \"startDate\": \"<dateTime>\",\n  \"endDate\": \"<dateTime>\"\n}"},{"id":"ddbd1a10-776e-4ed8-95ed-ea91d31cd6a8","name":"If the discount is not found","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/rooms/:roomId/discounts/:id","host":["/"],"path":["api","rooms",":roomId","discounts",":id"],"variable":[{"key":"roomId"},{"key":"id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"a4359c63-cce2-4d92-aa91-5d85fb77e709"},{"name":"Delete a discount","id":"7b2e5e5f-aeb6-4608-929e-8107df6af23d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"//api/rooms/:roomId/discounts/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","rooms",":roomId","discounts",":id"],"host":["/"],"query":[],"variable":[{"id":"0102383d-6eb6-426d-a0c2-6ce0a9066319","description":{"content":"<p>(Required) The ID of the room</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"roomId"},{"id":"883357b6-03ef-4d8f-bb27-b2530a355b6f","description":{"content":"<p>(Required) The ID of the discount</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"id"}]}},"response":[{"id":"e14952d8-ecf6-4e2b-a865-942f7faf2aa7","name":"Success","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/rooms/:roomId/discounts/:id","host":["/"],"path":["api","rooms",":roomId","discounts",":id"],"variable":[{"key":"roomId"},{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"6035e06a-2218-4b12-99f3-1680b00c23ab","name":"If the operation is successfully done","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/rooms/:roomId/discounts/:id","host":["/"],"path":["api","rooms",":roomId","discounts",":id"],"variable":[{"key":"roomId"},{"key":"id"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"9f66dcce-9389-4bfe-b406-6264b2761fd4","name":"User is not authenticated.","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/rooms/:roomId/discounts/:id","host":["/"],"path":["api","rooms",":roomId","discounts",":id"],"variable":[{"key":"roomId"},{"key":"id"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"555b97ad-7b2a-44ff-8fab-9111a6d7b568","name":"User is not authorized (not an admin).","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/rooms/:roomId/discounts/:id","host":["/"],"path":["api","rooms",":roomId","discounts",":id"],"variable":[{"key":"roomId"},{"key":"id"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"7b2e5e5f-aeb6-4608-929e-8107df6af23d"}],"id":"7fcf9851-4c4f-4078-b5c1-9f83b58d9419","_postman_id":"7fcf9851-4c4f-4078-b5c1-9f83b58d9419","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}},{"name":"Create a new discount","id":"c6152c89-03d0-49ef-acdc-bbdc2427f03f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"text/plain"}],"body":{"mode":"raw","raw":"{\n  \"percentage\": \"<double>\",\n  \"discountedPrice\": \"<double>\",\n  \"startDate\": \"<dateTime>\",\n  \"endDate\": \"<dateTime>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/rooms/:roomId/discounts","description":"<p>Sample request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>POST /rooms/{roomId}/discounts\n{\n   \"Percentage\": 15\n   \"StartDate\": \"2025-01-0200:00:00\",\n   \"EndDate\": \"2025-01-05T00:00:00\"\n}\n</code></pre>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","rooms",":roomId","discounts"],"host":["/"],"query":[],"variable":[{"id":"331aad82-ad46-41e1-ae8e-73efee7afcf4","description":{"content":"<p>(Required) The ID of the room</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"roomId"}]}},"response":[{"id":"56f81da9-0871-4bf4-8a67-8208de9f623b","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"text/plain"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"percentage\": \"<double>\",\n  \"discountedPrice\": \"<double>\",\n  \"startDate\": \"<dateTime>\",\n  \"endDate\": \"<dateTime>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/rooms/:roomId/discounts","host":["/"],"path":["api","rooms",":roomId","discounts"],"variable":[{"key":"roomId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"<uuid>\",\n  \"roomId\": \"<uuid>\",\n  \"percentage\": \"<double>\",\n  \"originalPrice\": \"<double>\",\n  \"discountedPrice\": \"<double>\",\n  \"startDate\": \"<dateTime>\",\n  \"endDate\": \"<dateTime>\"\n}"},{"id":"86b17ac2-a308-4195-acfa-bef5a7d0845d","name":"Returns the newly created discount","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"percentage\": \"<double>\",\n  \"discountedPrice\": \"<double>\",\n  \"startDate\": \"<dateTime>\",\n  \"endDate\": \"<dateTime>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/rooms/:roomId/discounts","host":["/"],"path":["api","rooms",":roomId","discounts"],"variable":[{"key":"roomId"}]}},"status":"Created","code":201,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"a32b8f85-68bc-4334-82a5-5002e5555140","name":"If the request data is invalid","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"percentage\": \"<double>\",\n  \"discountedPrice\": \"<double>\",\n  \"startDate\": \"<dateTime>\",\n  \"endDate\": \"<dateTime>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/rooms/:roomId/discounts","host":["/"],"path":["api","rooms",":roomId","discounts"],"variable":[{"key":"roomId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"05d5e9aa-92e3-4d16-b669-984423947e2d","name":"User is not authenticated.","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"percentage\": \"<double>\",\n  \"discountedPrice\": \"<double>\",\n  \"startDate\": \"<dateTime>\",\n  \"endDate\": \"<dateTime>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/rooms/:roomId/discounts","host":["/"],"path":["api","rooms",":roomId","discounts"],"variable":[{"key":"roomId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"15936c1d-9f28-4f00-8520-eded9e9aa3f7","name":"User is not authorized (not an admin).","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"percentage\": \"<double>\",\n  \"discountedPrice\": \"<double>\",\n  \"startDate\": \"<dateTime>\",\n  \"endDate\": \"<dateTime>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/rooms/:roomId/discounts","host":["/"],"path":["api","rooms",":roomId","discounts"],"variable":[{"key":"roomId"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"c6152c89-03d0-49ef-acdc-bbdc2427f03f"},{"name":"Get discounts for a room by its ID","id":"08f16f7f-765f-48a6-be27-b3d64b90be74","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"text/plain"}],"url":"//api/rooms/:roomId/discounts?PageNumber=<integer>&PageSize=<integer>&SortColumn=DiscountedPrice&SortOrder=Desc","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","rooms",":roomId","discounts"],"host":["/"],"query":[{"key":"PageNumber","value":"<integer>"},{"key":"PageSize","value":"<integer>"},{"key":"SortColumn","value":"DiscountedPrice"},{"key":"SortOrder","value":"Desc"}],"variable":[{"id":"0191378b-be2f-47e0-a28a-459030a5653b","description":{"content":"<p>(Required) The ID of the room</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"roomId"}]}},"response":[{"id":"63022031-9a5c-44b3-a1b9-657d92bc4525","name":"Returns the discounts for a room with givin ID","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"text/plain"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/rooms/:roomId/discounts?PageNumber=<integer>&PageSize=<integer>&SortColumn=DiscountedPrice&SortOrder=Desc","host":["/"],"path":["api","rooms",":roomId","discounts"],"query":[{"key":"PageNumber","value":"<integer>"},{"key":"PageSize","value":"<integer>"},{"key":"SortColumn","value":"DiscountedPrice"},{"key":"SortOrder","value":"Desc"}],"variable":[{"key":"roomId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"percentage\": \"<double>\",\n  \"originalPrice\": \"<double>\",\n  \"discountedPrice\": \"<double>\",\n  \"startDate\": \"<dateTime>\",\n  \"endDate\": \"<dateTime>\"\n}"}],"_postman_id":"08f16f7f-765f-48a6-be27-b3d64b90be74"}],"id":"eb381bcd-677e-4b97-a78f-ba33a6b07ed0","_postman_id":"eb381bcd-677e-4b97-a78f-ba33a6b07ed0","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}}],"id":"f2a036aa-205d-4044-a587-f3618cae2064","_postman_id":"f2a036aa-205d-4044-a587-f3618cae2064","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}},{"name":"featured-deals","item":[{"name":"Retrieves a collection of featured deals based on the specified count.","id":"d0271b33-041f-4db9-a82b-86c08dfb15a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"text/plain"}],"url":"//api/rooms/featured-deals?deals=5","description":"<p>This endpoint allows clients to retrieve a curated list of featured deals.\nThe response includes essential details for each deal,\nsuch as its hotel name, room type, star rating, discount percentage, and discounted price.</p>\n<p>The number of featured deals to be retrieved can be specified\nusing the deals parameter. If no count is provided, the default is set to 5.</p>\n<p>Sample request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET /featured-deals?deals=3\n</code></pre>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","rooms","featured-deals"],"host":["/"],"query":[{"description":{"content":"<p>The number of featured deals to retrieve. Default is 5.</p>\n","type":"text/plain"},"key":"deals","value":"5"}],"variable":[]}},"response":[{"id":"e1803362-b212-4f1f-806d-5ad316eb0ff5","name":"Returns the collection of featured deals.","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"text/plain"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/rooms/featured-deals?deals=5","host":["/"],"path":["api","rooms","featured-deals"],"query":[{"description":"The number of featured deals to retrieve. Default is 5.","key":"deals","value":"5"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"id\": \"<uuid>\",\n    \"hotelId\": \"<uuid>\",\n    \"hotelName\": \"<string>\",\n    \"hotelImage\": {\n      \"imageUrl\": \"<string>\",\n      \"alternativeText\": \"<string>\"\n    },\n    \"starRate\": \"<integer>\",\n    \"street\": \"<string>\",\n    \"location\": {\n      \"longitude\": \"<double>\",\n      \"latitude\": \"<double>\"\n    },\n    \"roomId\": \"<uuid>\",\n    \"roomNumber\": \"<integer>\",\n    \"roomType\": \"Standard\",\n    \"originalPrice\": \"<double>\",\n    \"discountedPrice\": \"<double>\",\n    \"discountPercentage\": \"<double>\",\n    \"cityName\": \"<string>\",\n    \"country\": \"<string>\"\n  },\n  {\n    \"id\": \"<uuid>\",\n    \"hotelId\": \"<uuid>\",\n    \"hotelName\": \"<string>\",\n    \"hotelImage\": {\n      \"imageUrl\": \"<string>\",\n      \"alternativeText\": \"<string>\"\n    },\n    \"starRate\": \"<integer>\",\n    \"street\": \"<string>\",\n    \"location\": {\n      \"longitude\": \"<double>\",\n      \"latitude\": \"<double>\"\n    },\n    \"roomId\": \"<uuid>\",\n    \"roomNumber\": \"<integer>\",\n    \"roomType\": \"Luxury\",\n    \"originalPrice\": \"<double>\",\n    \"discountedPrice\": \"<double>\",\n    \"discountPercentage\": \"<double>\",\n    \"cityName\": \"<string>\",\n    \"country\": \"<string>\"\n  }\n]"}],"_postman_id":"d0271b33-041f-4db9-a82b-86c08dfb15a1"}],"id":"8d9c67f6-5cdd-4111-9bc0-5a975e243293","_postman_id":"8d9c67f6-5cdd-4111-9bc0-5a975e243293","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}}],"id":"93084307-4838-4591-ac66-047bd1a64ea3","_postman_id":"93084307-4838-4591-ac66-047bd1a64ea3","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}},{"name":"Guests","item":[{"name":"{guestId}","item":[{"name":"bookings","item":[{"name":"Retrieves all bookings for a specific guest.","id":"ce97ccc1-f038-46c7-a268-f291528b2119","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"text/plain"}],"url":"//api/Guests/:guestId/bookings?PageNumber=<integer>&PageSize=<integer>&SearchTerm=<string>&SortColumn=NumberOfChildren&SortOrder=Desc","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Guests",":guestId","bookings"],"host":["/"],"query":[{"key":"PageNumber","value":"<integer>"},{"key":"PageSize","value":"<integer>"},{"key":"SearchTerm","value":"<string>"},{"key":"SortColumn","value":"NumberOfChildren"},{"key":"SortOrder","value":"Desc"}],"variable":[{"id":"1da4dbe5-80f0-4b32-bac1-d4612b2ae387","description":{"content":"<p>(Required) The ID of the guest.</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"guestId"}]}},"response":[{"id":"05bfaad9-11fc-4dc1-bfe6-cdb2d886c9fc","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"text/plain"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Guests/:guestId/bookings?PageNumber=<integer>&PageSize=<integer>&SearchTerm=<string>&SortColumn=NumberOfChildren&SortOrder=Desc","host":["/"],"path":["api","Guests",":guestId","bookings"],"query":[{"key":"PageNumber","value":"<integer>"},{"key":"PageSize","value":"<integer>"},{"key":"SearchTerm","value":"<string>"},{"key":"SortColumn","value":"NumberOfChildren"},{"key":"SortOrder","value":"Desc"}],"variable":[{"key":"guestId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"confirmationId\": \"<uuid>\",\n    \"checkInDate\": \"<date>\",\n    \"checkOutDate\": \"<date>\",\n    \"numberOfAdults\": \"<integer>\",\n    \"numberOfChildren\": \"<integer>\",\n    \"hotelName\": \"<string>\",\n    \"hotelId\": \"<uuid>\",\n    \"price\": \"<double>\",\n    \"roomNumbers\": [\n      \"<integer>\",\n      \"<integer>\"\n    ]\n  },\n  {\n    \"confirmationId\": \"<uuid>\",\n    \"checkInDate\": \"<date>\",\n    \"checkOutDate\": \"<date>\",\n    \"numberOfAdults\": \"<integer>\",\n    \"numberOfChildren\": \"<integer>\",\n    \"hotelName\": \"<string>\",\n    \"hotelId\": \"<uuid>\",\n    \"price\": \"<double>\",\n    \"roomNumbers\": [\n      \"<integer>\",\n      \"<integer>\"\n    ]\n  }\n]"}],"_postman_id":"ce97ccc1-f038-46c7-a268-f291528b2119"}],"id":"ade9ebf8-7983-4cf5-a61a-9e6a59a5a330","_postman_id":"ade9ebf8-7983-4cf5-a61a-9e6a59a5a330","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}},{"name":"recently-visited-hotels","item":[{"name":"Retrieves a collection of unique recently visited hotels for a guest, presenting essential details.","id":"567959ca-053f-49f6-b6d0-2da422a160ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"text/plain"}],"url":"//api/Guests/:guestId/recently-visited-hotels?count=5","description":"<p>The resulting collection provides essential information about the last N different hotels the guest visited, such as hotel name, city name, star rating, and price.</p>\n<p>Sample request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET guests/{guestId}/recently-visited-hotels?count=3\n</code></pre>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Guests",":guestId","recently-visited-hotels"],"host":["/"],"query":[{"description":{"content":"<p>The maximum number of unique recently visited hotels to retrieve. Default is 5.</p>\n","type":"text/plain"},"key":"count","value":"5"}],"variable":[{"id":"dd38863c-decf-4d14-9a69-35dbac93229d","description":{"content":"<p>(Required) The ID of the guest for whom recently visited hotels are to be retrieved.</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"guestId"}]}},"response":[{"id":"77125053-322d-42c2-9659-31967f4d3d42","name":"Returns the last 5 different hotels the guest visited","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"text/plain"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Guests/:guestId/recently-visited-hotels?count=5","host":["/"],"path":["api","Guests",":guestId","recently-visited-hotels"],"query":[{"description":"The maximum number of unique recently visited hotels to retrieve. Default is 5.","key":"count","value":"5"}],"variable":[{"key":"guestId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"hotelName\": \"<string>\",\n    \"hotelImage\": {\n      \"imageUrl\": \"<string>\",\n      \"alternativeText\": \"<string>\"\n    },\n    \"cityName\": \"<string>\",\n    \"starRating\": \"<integer>\",\n    \"price\": \"<double>\",\n    \"location\": {\n      \"longitude\": \"<double>\",\n      \"latitude\": \"<double>\"\n    },\n    \"street\": \"<string>\"\n  },\n  {\n    \"hotelName\": \"<string>\",\n    \"hotelImage\": {\n      \"imageUrl\": \"<string>\",\n      \"alternativeText\": \"<string>\"\n    },\n    \"cityName\": \"<string>\",\n    \"starRating\": \"<integer>\",\n    \"price\": \"<double>\",\n    \"location\": {\n      \"longitude\": \"<double>\",\n      \"latitude\": \"<double>\"\n    },\n    \"street\": \"<string>\"\n  }\n]"},{"id":"b0beea05-75b6-44d9-8026-685833b8b819","name":"If the guest is not found","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Guests/:guestId/recently-visited-hotels?count=5","host":["/"],"path":["api","Guests",":guestId","recently-visited-hotels"],"query":[{"description":"The maximum number of unique recently visited hotels to retrieve. Default is 5.","key":"count","value":"5"}],"variable":[{"key":"guestId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"567959ca-053f-49f6-b6d0-2da422a160ef"}],"id":"9858f3ea-ee89-4385-83f0-dfb424c9d86f","_postman_id":"9858f3ea-ee89-4385-83f0-dfb424c9d86f","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}},{"name":"Retrieves details of a guest by their ID.","id":"bb1fd201-05e2-4687-8b02-04186c56b7c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"text/plain"}],"url":"//api/Guests/:guestId","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Guests",":guestId"],"host":["/"],"query":[],"variable":[{"id":"dd6c7e51-0ea9-4de9-b037-ae15a5e9807b","description":{"content":"<p>(Required) The ID of the guest to retrieve.</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"guestId"}]}},"response":[{"id":"8b7e7ed6-6388-4e08-930a-62765faf7799","name":"Returns the guest details.","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"text/plain"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Guests/:guestId","host":["/"],"path":["api","Guests",":guestId"],"variable":[{"key":"guestId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"<uuid>\",\n  \"firstName\": \"<string>\",\n  \"lastName\": \"<string>\",\n  \"fullName\": \"<string>\",\n  \"dateOfBirth\": \"<date>\",\n  \"address\": \"<string>\",\n  \"numberOfBookings\": \"<integer>\"\n}"},{"id":"46f0d437-a2f7-4366-8fc4-17a635504abc","name":"If the guest is not found.","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Guests/:guestId","host":["/"],"path":["api","Guests",":guestId"],"variable":[{"key":"guestId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"bb1fd201-05e2-4687-8b02-04186c56b7c8"}],"id":"737ea03c-4e2f-4c9e-9b4d-5de1651aae5b","_postman_id":"737ea03c-4e2f-4c9e-9b4d-5de1651aae5b","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}},{"name":"recently-visited-hotels","item":[{"name":"Retrieves a collection of unique recently visited hotels for a the current authorized guest, presenting essential details.","id":"ed69427e-59ab-4d1f-91d2-1d3072eb0ea2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"text/plain"}],"url":"//api/Guests/recently-visited-hotels?count=5","description":"<p>The resulting collection provides essential information about the last N different hotels the guest visited, such as hotel name, city name, star rating, and price.</p>\n<p>Sample request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET guests/{guestId}/recently-visited-hotels?count=3\n</code></pre>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Guests","recently-visited-hotels"],"host":["/"],"query":[{"description":{"content":"<p>The maximum number of unique recently visited hotels to retrieve. Default is 5.</p>\n","type":"text/plain"},"key":"count","value":"5"}],"variable":[]}},"response":[{"id":"a560792c-9e5e-466b-a02e-a35ec3716f1f","name":"Returns the last 5 different hotels the guest visited","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"text/plain"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Guests/recently-visited-hotels?count=5","host":["/"],"path":["api","Guests","recently-visited-hotels"],"query":[{"description":"The maximum number of unique recently visited hotels to retrieve. Default is 5.","key":"count","value":"5"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"hotelName\": \"<string>\",\n    \"hotelImage\": {\n      \"imageUrl\": \"<string>\",\n      \"alternativeText\": \"<string>\"\n    },\n    \"cityName\": \"<string>\",\n    \"starRating\": \"<integer>\",\n    \"price\": \"<double>\",\n    \"location\": {\n      \"longitude\": \"<double>\",\n      \"latitude\": \"<double>\"\n    },\n    \"street\": \"<string>\"\n  },\n  {\n    \"hotelName\": \"<string>\",\n    \"hotelImage\": {\n      \"imageUrl\": \"<string>\",\n      \"alternativeText\": \"<string>\"\n    },\n    \"cityName\": \"<string>\",\n    \"starRating\": \"<integer>\",\n    \"price\": \"<double>\",\n    \"location\": {\n      \"longitude\": \"<double>\",\n      \"latitude\": \"<double>\"\n    },\n    \"street\": \"<string>\"\n  }\n]"},{"id":"9ddfe914-1ebc-4832-8db6-61eda02f8b03","name":"User is not authenticated.","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Guests/recently-visited-hotels?count=5","host":["/"],"path":["api","Guests","recently-visited-hotels"],"query":[{"description":"The maximum number of unique recently visited hotels to retrieve. Default is 5.","key":"count","value":"5"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"d5c35fbe-93c2-43f2-bcbe-bf31085ba074","name":"If the guest is not found","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Guests/recently-visited-hotels?count=5","host":["/"],"path":["api","Guests","recently-visited-hotels"],"query":[{"description":"The maximum number of unique recently visited hotels to retrieve. Default is 5.","key":"count","value":"5"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"ed69427e-59ab-4d1f-91d2-1d3072eb0ea2"}],"id":"af9db7c7-b0b4-44a2-b5f5-ea3bbc686927","_postman_id":"af9db7c7-b0b4-44a2-b5f5-ea3bbc686927","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}}],"id":"9e3e981f-511c-4d4c-8dec-f7c642043e6d","_postman_id":"9e3e981f-511c-4d4c-8dec-f7c642043e6d","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}},{"name":"Hotels","item":[{"name":"{id}","item":[{"name":"images","item":[{"name":"Upload an image to a hotel","id":"84d1173f-30ee-4d3d-95b4-5c66f181927f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","value":null}]},"url":"//api/Hotels/:id/images?alternativeText=<string>&thumbnail=false","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Hotels",":id","images"],"host":["/"],"query":[{"description":{"content":"<p>Alternative Text (Alt)</p>\n","type":"text/plain"},"key":"alternativeText","value":"<string>"},{"description":{"content":"<p>Indicates if the image should be used as a thumbnail</p>\n","type":"text/plain"},"key":"thumbnail","value":"false"}],"variable":[{"id":"976858df-34d3-420e-ad4b-0111694da8ad","description":{"content":"<p>(Required) The id of the hotel to upload image</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"id"}]}},"response":[{"id":"e28869b3-9060-47cf-9def-70323eabcd4f","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":[]}]},"url":{"raw":"//api/Hotels/:id/images?alternativeText=<string>&thumbnail=false","host":["/"],"path":["api","Hotels",":id","images"],"query":[{"description":"Alternative Text (Alt)","key":"alternativeText","value":"<string>"},{"description":"Indicates if the image should be used as a thumbnail","key":"thumbnail","value":"false"}],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"253bd519-5a57-487f-a3fb-df002b4d16e2","name":"If the image is successfully uploaded","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":[]}]},"url":{"raw":"//api/Hotels/:id/images?alternativeText=<string>&thumbnail=false","host":["/"],"path":["api","Hotels",":id","images"],"query":[{"description":"Alternative Text (Alt)","key":"alternativeText","value":"<string>"},{"description":"Indicates if the image should be used as a thumbnail","key":"thumbnail","value":"false"}],"variable":[{"key":"id"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"e0d408a9-7568-456a-bc15-727a22fefb0b","name":"If the request data is invalid","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":[]}]},"url":{"raw":"//api/Hotels/:id/images?alternativeText=<string>&thumbnail=false","host":["/"],"path":["api","Hotels",":id","images"],"query":[{"description":"Alternative Text (Alt)","key":"alternativeText","value":"<string>"},{"description":"Indicates if the image should be used as a thumbnail","key":"thumbnail","value":"false"}],"variable":[{"key":"id"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"8fb63253-c053-482b-abc3-de5359cc6285","name":"If the user is not authenticated","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":[]}]},"url":{"raw":"//api/Hotels/:id/images?alternativeText=<string>&thumbnail=false","host":["/"],"path":["api","Hotels",":id","images"],"query":[{"description":"Alternative Text (Alt)","key":"alternativeText","value":"<string>"},{"description":"Indicates if the image should be used as a thumbnail","key":"thumbnail","value":"false"}],"variable":[{"key":"id"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"57dee073-08db-438f-bf61-7ad90b31fd06","name":"If the user is not authorized (not an admin)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":[]}]},"url":{"raw":"//api/Hotels/:id/images?alternativeText=<string>&thumbnail=false","host":["/"],"path":["api","Hotels",":id","images"],"query":[{"description":"Alternative Text (Alt)","key":"alternativeText","value":"<string>"},{"description":"Indicates if the image should be used as a thumbnail","key":"thumbnail","value":"false"}],"variable":[{"key":"id"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"e7932014-b4c0-489f-b422-e8a3d6ff01c3","name":"If the hotel is not found","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":[]}]},"url":{"raw":"//api/Hotels/:id/images?alternativeText=<string>&thumbnail=false","host":["/"],"path":["api","Hotels",":id","images"],"query":[{"description":"Alternative Text (Alt)","key":"alternativeText","value":"<string>"},{"description":"Indicates if the image should be used as a thumbnail","key":"thumbnail","value":"false"}],"variable":[{"key":"id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"84d1173f-30ee-4d3d-95b4-5c66f181927f"}],"id":"9fd48692-7d83-4176-8020-4e7abc3bf9e4","_postman_id":"9fd48692-7d83-4176-8020-4e7abc3bf9e4","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}},{"name":"Get a hotel by its ID","id":"e64d1a29-8ddb-4e52-a68a-0fd66eef6351","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"text/plain"}],"url":"//api/Hotels/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Hotels",":id"],"host":["/"],"query":[],"variable":[{"id":"b57cf443-dcbf-4868-b506-d1885e47e56c","description":{"content":"<p>(Required) The ID of the hotel</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"id"}]}},"response":[{"id":"8bfa2c53-f63b-4f1a-b9d4-5ccdd41c01ae","name":"Returns the hotel with the given ID","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"text/plain"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Hotels/:id","host":["/"],"path":["api","Hotels",":id"],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"<uuid>\",\n  \"name\": \"<string>\",\n  \"starRate\": \"<integer>\",\n  \"description\": \"<string>\",\n  \"cityName\": \"<string>\",\n  \"street\": \"<string>\",\n  \"location\": {\n    \"longitude\": \"<double>\",\n    \"latitude\": \"<double>\"\n  },\n  \"images\": [\n    {\n      \"imageUrl\": \"<string>\",\n      \"alternativeText\": \"<string>\"\n    },\n    {\n      \"imageUrl\": \"<string>\",\n      \"alternativeText\": \"<string>\"\n    }\n  ],\n  \"rooms\": [\n    {\n      \"id\": \"<uuid>\",\n      \"roomType\": \"Standard\",\n      \"roomNumber\": \"<integer>\",\n      \"price\": \"<double>\",\n      \"description\": \"<string>\",\n      \"adultsCapacity\": \"<integer>\",\n      \"childrenCapacity\": \"<integer>\",\n      \"roomImage\": {\n        \"imageUrl\": \"<string>\",\n        \"alternativeText\": \"<string>\"\n      }\n    },\n    {\n      \"id\": \"<uuid>\",\n      \"roomType\": \"Budget\",\n      \"roomNumber\": \"<integer>\",\n      \"price\": \"<double>\",\n      \"description\": \"<string>\",\n      \"adultsCapacity\": \"<integer>\",\n      \"childrenCapacity\": \"<integer>\",\n      \"roomImage\": {\n        \"imageUrl\": \"<string>\",\n        \"alternativeText\": \"<string>\"\n      }\n    }\n  ],\n  \"amenities\": [\n    {\n      \"id\": \"<uuid>\",\n      \"name\": \"<string>\",\n      \"description\": \"<string>\"\n    },\n    {\n      \"id\": \"<uuid>\",\n      \"name\": \"<string>\",\n      \"description\": \"<string>\"\n    }\n  ]\n}"},{"id":"f6baa723-307c-4022-b4e6-437272248f52","name":"If the hotel is not found","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Hotels/:id","host":["/"],"path":["api","Hotels",":id"],"variable":[{"key":"id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"e64d1a29-8ddb-4e52-a68a-0fd66eef6351"},{"name":"Delete a hotel","id":"73346c09-8ad6-4086-ae33-92f5cadbc263","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"//api/Hotels/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Hotels",":id"],"host":["/"],"query":[],"variable":[{"id":"f3d6f783-cfaa-4b69-97df-47f4186eb8be","description":{"content":"<p>(Required) The ID of the hotel to delete</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"id"}]}},"response":[{"id":"ab844fac-42d3-4215-af2c-1c7805c8ed51","name":"Success","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Hotels/:id","host":["/"],"path":["api","Hotels",":id"],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"66570f7c-2815-43bb-86c3-a7b155e71c58","name":"If the operation is successfully done","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Hotels/:id","host":["/"],"path":["api","Hotels",":id"],"variable":[{"key":"id"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"86e18696-37cb-4578-9fb0-df3932eb61e2","name":"If the user is not authenticated","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Hotels/:id","host":["/"],"path":["api","Hotels",":id"],"variable":[{"key":"id"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"66c2cf46-d6fa-46b7-95da-5b6ba17168f0","name":"If the user is not authorized (not an admin)","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Hotels/:id","host":["/"],"path":["api","Hotels",":id"],"variable":[{"key":"id"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"73346c09-8ad6-4086-ae33-92f5cadbc263"},{"name":"Update a hotel","id":"6cd504d0-9587-4ea7-ab59-e768d4afc55b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"cityId\": \"<uuid>\",\n  \"name\": \"<string>\",\n  \"owner\": \"<string>\",\n  \"street\": \"<string>\",\n  \"location\": {\n    \"longitude\": \"<double>\",\n    \"latitude\": \"<double>\"\n  }\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Hotels/:id","description":"<p>Sample request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>PUT /hotels/{hotelId}\n{\n   \"cityId\": \"{cityId}\"\n   \"name\": \"Paris Hotel\",\n   \"owner\": \"John Smith\",\n   \"street\": \"230 st.\",\n   \"location\": {\n      \"latitude\": \"17.2\",\n      \"longitude\": \"47.1\"\n   }\n}\n</code></pre>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Hotels",":id"],"host":["/"],"query":[],"variable":[{"id":"267890ee-479c-485e-9006-e1acb51115c3","description":{"content":"<p>(Required) The ID of the hotel to update</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"id"}]}},"response":[{"id":"5999cccb-319b-42f5-baca-9253a274b92f","name":"Success","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"cityId\": \"<uuid>\",\n  \"name\": \"<string>\",\n  \"owner\": \"<string>\",\n  \"street\": \"<string>\",\n  \"location\": {\n    \"longitude\": \"<double>\",\n    \"latitude\": \"<double>\"\n  }\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Hotels/:id","host":["/"],"path":["api","Hotels",":id"],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"60d21be7-1899-4fef-9f70-0dedc2a42493","name":"If the hotel is successfully updated","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"cityId\": \"<uuid>\",\n  \"name\": \"<string>\",\n  \"owner\": \"<string>\",\n  \"street\": \"<string>\",\n  \"location\": {\n    \"longitude\": \"<double>\",\n    \"latitude\": \"<double>\"\n  }\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Hotels/:id","host":["/"],"path":["api","Hotels",":id"],"variable":[{"key":"id"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"d6097519-ed69-4c22-b0a3-9116b9be39e3","name":"If the request data is invalid","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"cityId\": \"<uuid>\",\n  \"name\": \"<string>\",\n  \"owner\": \"<string>\",\n  \"street\": \"<string>\",\n  \"location\": {\n    \"longitude\": \"<double>\",\n    \"latitude\": \"<double>\"\n  }\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Hotels/:id","host":["/"],"path":["api","Hotels",":id"],"variable":[{"key":"id"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"e9ed148e-f0eb-4476-9c56-86b6ea6cab47","name":"If the user is not authenticated","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"cityId\": \"<uuid>\",\n  \"name\": \"<string>\",\n  \"owner\": \"<string>\",\n  \"street\": \"<string>\",\n  \"location\": {\n    \"longitude\": \"<double>\",\n    \"latitude\": \"<double>\"\n  }\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Hotels/:id","host":["/"],"path":["api","Hotels",":id"],"variable":[{"key":"id"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"ba4b04cd-6569-448b-8cd6-f5994620666d","name":"If the user is not authorized (not an admin)","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"cityId\": \"<uuid>\",\n  \"name\": \"<string>\",\n  \"owner\": \"<string>\",\n  \"street\": \"<string>\",\n  \"location\": {\n    \"longitude\": \"<double>\",\n    \"latitude\": \"<double>\"\n  }\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Hotels/:id","host":["/"],"path":["api","Hotels",":id"],"variable":[{"key":"id"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"d6771700-8451-4102-96c8-e6abd6450e07","name":"If the hotel is not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"cityId\": \"<uuid>\",\n  \"name\": \"<string>\",\n  \"owner\": \"<string>\",\n  \"street\": \"<string>\",\n  \"location\": {\n    \"longitude\": \"<double>\",\n    \"latitude\": \"<double>\"\n  }\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Hotels/:id","host":["/"],"path":["api","Hotels",":id"],"variable":[{"key":"id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"6cd504d0-9587-4ea7-ab59-e768d4afc55b"}],"id":"470b9aab-29f1-400f-a345-04c3e1d6a938","_postman_id":"470b9aab-29f1-400f-a345-04c3e1d6a938","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}},{"name":"Search-Filter","item":[{"name":"Searches and filters hotels based on the specified criteria.","id":"b9217c23-49fc-4193-a46a-4c86527cfd94","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"text/plain"}],"url":"//api/Hotels/Search-Filter?CheckInDate=<date>&CheckOutDate=<date>&Adults=<integer>&Children=<integer>&Rooms=<integer>&MinStarRating=<integer>&MaxPrice=<double>&MinPrice=<double>&Amenities=<uuid>&Amenities=<uuid>&RoomTypes=Budget&RoomTypes=Standard&PageNumber=<integer>&PageSize=<integer>&SearchTerm=<string>&SortColumn=Rating&SortOrder=Desc","description":"<p>Performs a search based on a query string and optional parameters, allowing users to refine results.\nParameters include:</p>\n<ul>\n<li>Check-in and check-out dates</li>\n<li>Number of adults, children, and rooms\nAdditional filters can be applied, such as:</li>\n<li>Minimum star rating</li>\n<li>Price range (minimum and maximum)</li>\n<li>Amenities</li>\n<li>Room types\nThese options help narrow down the search to provide more tailored results.</li>\n</ul>\n<p>Sample request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET /hotels/search?searchTerm=Tokyo&amp;maxPrice=100&amp;minStarRating=4&amp;amenities=FreeWifi&amp;roomTypes=Standard\n</code></pre>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Hotels","Search-Filter"],"host":["/"],"query":[{"key":"CheckInDate","value":"<date>"},{"key":"CheckOutDate","value":"<date>"},{"key":"Adults","value":"<integer>"},{"key":"Children","value":"<integer>"},{"key":"Rooms","value":"<integer>"},{"key":"MinStarRating","value":"<integer>"},{"key":"MaxPrice","value":"<double>"},{"key":"MinPrice","value":"<double>"},{"key":"Amenities","value":"<uuid>"},{"key":"Amenities","value":"<uuid>"},{"key":"RoomTypes","value":"Budget"},{"key":"RoomTypes","value":"Standard"},{"key":"PageNumber","value":"<integer>"},{"key":"PageSize","value":"<integer>"},{"key":"SearchTerm","value":"<string>"},{"key":"SortColumn","value":"Rating"},{"key":"SortOrder","value":"Desc"}],"variable":[]}},"response":[{"id":"ee339c28-29ac-490d-9e06-9000b6cd397e","name":"Returns the list of hotels based on the search criteria.","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"text/plain"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Hotels/Search-Filter?CheckInDate=<date>&CheckOutDate=<date>&Adults=<integer>&Children=<integer>&Rooms=<integer>&MinStarRating=<integer>&MaxPrice=<double>&MinPrice=<double>&Amenities=<uuid>&RoomTypes=Standard&PageNumber=<integer>&PageSize=<integer>&SearchTerm=<string>&SortColumn=Rating&SortOrder=Desc","host":["/"],"path":["api","Hotels","Search-Filter"],"query":[{"key":"CheckInDate","value":"<date>"},{"key":"CheckOutDate","value":"<date>"},{"key":"Adults","value":"<integer>"},{"key":"Children","value":"<integer>"},{"key":"Rooms","value":"<integer>"},{"key":"MinStarRating","value":"<integer>"},{"key":"MaxPrice","value":"<double>"},{"key":"MinPrice","value":"<double>"},{"key":"Amenities","value":"<uuid>"},{"key":"RoomTypes","value":"Standard"},{"key":"PageNumber","value":"<integer>"},{"key":"PageSize","value":"<integer>"},{"key":"SearchTerm","value":"<string>"},{"key":"SortColumn","value":"Rating"},{"key":"SortOrder","value":"Desc"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"id\": \"<uuid>\",\n    \"name\": \"<string>\",\n    \"starRate\": \"<integer>\",\n    \"hotelImage\": {\n      \"imageUrl\": \"<string>\",\n      \"alternativeText\": \"<string>\"\n    },\n    \"description\": \"<string>\",\n    \"price\": \"<double>\",\n    \"location\": {\n      \"longitude\": \"<double>\",\n      \"latitude\": \"<double>\"\n    },\n    \"street\": \"<string>\"\n  },\n  {\n    \"id\": \"<uuid>\",\n    \"name\": \"<string>\",\n    \"starRate\": \"<integer>\",\n    \"hotelImage\": {\n      \"imageUrl\": \"<string>\",\n      \"alternativeText\": \"<string>\"\n    },\n    \"description\": \"<string>\",\n    \"price\": \"<double>\",\n    \"location\": {\n      \"longitude\": \"<double>\",\n      \"latitude\": \"<double>\"\n    },\n    \"street\": \"<string>\"\n  }\n]"},{"id":"ef43a6e6-02e4-4ffd-b510-8265dc12d989","name":"If the request parameters are invalid or missing.","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Hotels/Search-Filter?CheckInDate=<date>&CheckOutDate=<date>&Adults=<integer>&Children=<integer>&Rooms=<integer>&MinStarRating=<integer>&MaxPrice=<double>&MinPrice=<double>&Amenities=<uuid>&RoomTypes=Standard&PageNumber=<integer>&PageSize=<integer>&SearchTerm=<string>&SortColumn=Rating&SortOrder=Desc","host":["/"],"path":["api","Hotels","Search-Filter"],"query":[{"key":"CheckInDate","value":"<date>"},{"key":"CheckOutDate","value":"<date>"},{"key":"Adults","value":"<integer>"},{"key":"Children","value":"<integer>"},{"key":"Rooms","value":"<integer>"},{"key":"MinStarRating","value":"<integer>"},{"key":"MaxPrice","value":"<double>"},{"key":"MinPrice","value":"<double>"},{"key":"Amenities","value":"<uuid>"},{"key":"RoomTypes","value":"Standard"},{"key":"PageNumber","value":"<integer>"},{"key":"PageSize","value":"<integer>"},{"key":"SearchTerm","value":"<string>"},{"key":"SortColumn","value":"Rating"},{"key":"SortOrder","value":"Desc"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"b9217c23-49fc-4193-a46a-4c86527cfd94"}],"id":"c8e44461-82a7-4891-aef0-0de29e1a6872","_postman_id":"c8e44461-82a7-4891-aef0-0de29e1a6872","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}},{"name":"{hotelId}","item":[{"name":"amenities","item":[{"name":"Add a list of amenities to a hotel.","id":"09a98b05-e43d-43f0-a014-479819402255","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"[\n  \"<uuid>\",\n  \"<uuid>\"\n]","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Hotels/:hotelId/amenities","description":"<p>Sample request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">POST /hotels/{hotelId}/amenities\n[\n    \"eabc6edb-1a9a-4795-972e-2c44625cbeda\", \n    \"586ff0db-6e9e-4879-b082-7e40c900cbdd\"\n]\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Hotels",":hotelId","amenities"],"host":["/"],"query":[],"variable":[{"id":"d0baf830-f527-49c7-9978-7fcb3840ca33","description":{"content":"<p>(Required) The id of the hotel to add amenities to.</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"hotelId"}]}},"response":[{"id":"d3006a46-47ab-46e1-8757-ab9610ca8f0a","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"[\n  \"<uuid>\",\n  \"<uuid>\"\n]","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Hotels/:hotelId/amenities","host":["/"],"path":["api","Hotels",":hotelId","amenities"],"variable":[{"key":"hotelId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"70832aa1-1733-4534-b82d-9dabe5dbdb2a","name":"If the amenities are successfully added.","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"[\n  \"<uuid>\",\n  \"<uuid>\"\n]","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Hotels/:hotelId/amenities","host":["/"],"path":["api","Hotels",":hotelId","amenities"],"variable":[{"key":"hotelId"}]}},"status":"Created","code":201,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"a8c5dce2-4ed6-4bb5-867e-823cb8531ecc","name":"If the operation is successful but returns no content.","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"[\n  \"<uuid>\",\n  \"<uuid>\"\n]","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Hotels/:hotelId/amenities","host":["/"],"path":["api","Hotels",":hotelId","amenities"],"variable":[{"key":"hotelId"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"ee29dd4e-8af2-4bc4-ae2e-7b1c913e0327","name":"If the request data is invalid.","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"[\n  \"<uuid>\",\n  \"<uuid>\"\n]","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Hotels/:hotelId/amenities","host":["/"],"path":["api","Hotels",":hotelId","amenities"],"variable":[{"key":"hotelId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"d2fd5757-f3af-4bbf-896b-2c2c00b5895b","name":"If the user is not authenticated.","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"[\n  \"<uuid>\",\n  \"<uuid>\"\n]","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Hotels/:hotelId/amenities","host":["/"],"path":["api","Hotels",":hotelId","amenities"],"variable":[{"key":"hotelId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"064cdf7f-6a85-40d6-ae05-9425afa87ced","name":"If the user is not authorized (not an admin).","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"[\n  \"<uuid>\",\n  \"<uuid>\"\n]","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Hotels/:hotelId/amenities","host":["/"],"path":["api","Hotels",":hotelId","amenities"],"variable":[{"key":"hotelId"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"09a98b05-e43d-43f0-a014-479819402255"},{"name":"Retrieves a paginated and optionally sorted list of amenities for a hotel based on the specified query parameters.","id":"75038f96-3c75-4ca9-b5f3-a52459b825bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"text/plain"}],"url":"//api/Hotels/:hotelId/amenities?PageNumber=<integer>&PageSize=<integer>&SearchTerm=<string>&SortColumn=Name&SortOrder=Desc","description":"<p>This endpoint allows clients to fetch amenities with options for sorting, pagination, and filtering.\nThe available query parameters include:</p>\n<ul>\n<li><strong>SortOrder</strong>: Specifies the sorting order (e.g., ascending or descending).</li>\n<li><strong>SortColumn</strong>: Specifies the column to sort by (e.g., name, description).</li>\n<li><strong>PageNumber</strong>: Specifies the page number for pagination.</li>\n<li><strong>PageSize</strong>: Specifies the number of items per page.</li>\n<li><strong>SearchTerm</strong>: Filters amenities based on a search term that matches amenity name or Description.</li>\n</ul>\n<p>Example usage:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET /hotels/{hotelId}/amenities?sortOrder=asc&amp;sortColumn=name&amp;pageNumber=1&amp;pageSize=10&amp;searchTerm=SmartTV\n</code></pre><p>The response includes paginated metadata in the <code>X-Pagination</code> header and links to related pages (e.g., next, previous).</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Hotels",":hotelId","amenities"],"host":["/"],"query":[{"key":"PageNumber","value":"<integer>"},{"key":"PageSize","value":"<integer>"},{"key":"SearchTerm","value":"<string>"},{"key":"SortColumn","value":"Name"},{"key":"SortOrder","value":"Desc"}],"variable":[{"id":"19e4ea5b-5808-4390-8408-acd42c1065e8","description":{"content":"<p>(Required) </p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"hotelId"}]}},"response":[{"id":"e8e1c8e3-4aa7-4140-8ba4-6fdfcc70f5ee","name":"Returns the list of amenities that match the query parameters.","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"text/plain"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Hotels/:hotelId/amenities?PageNumber=<integer>&PageSize=<integer>&SearchTerm=<string>&SortColumn=Name&SortOrder=Desc","host":["/"],"path":["api","Hotels",":hotelId","amenities"],"query":[{"key":"PageNumber","value":"<integer>"},{"key":"PageSize","value":"<integer>"},{"key":"SearchTerm","value":"<string>"},{"key":"SortColumn","value":"Name"},{"key":"SortOrder","value":"Desc"}],"variable":[{"key":"hotelId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"id\": \"<uuid>\",\n    \"name\": \"<string>\",\n    \"description\": \"<string>\"\n  },\n  {\n    \"id\": \"<uuid>\",\n    \"name\": \"<string>\",\n    \"description\": \"<string>\"\n  }\n]"},{"id":"a107d600-92d0-4df1-a159-9f2e18cfae21","name":"Returned if the provided query parameters are invalid.","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Hotels/:hotelId/amenities?PageNumber=<integer>&PageSize=<integer>&SearchTerm=<string>&SortColumn=Name&SortOrder=Desc","host":["/"],"path":["api","Hotels",":hotelId","amenities"],"query":[{"key":"PageNumber","value":"<integer>"},{"key":"PageSize","value":"<integer>"},{"key":"SearchTerm","value":"<string>"},{"key":"SortColumn","value":"Name"},{"key":"SortOrder","value":"Desc"}],"variable":[{"key":"hotelId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"75038f96-3c75-4ca9-b5f3-a52459b825bb"}],"id":"8c19bb1e-12d2-4bf6-8123-4a46512c518d","_postman_id":"8c19bb1e-12d2-4bf6-8123-4a46512c518d","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}}],"id":"1c4e0f3c-e0d9-4e49-bbc1-a2995615f529","_postman_id":"1c4e0f3c-e0d9-4e49-bbc1-a2995615f529","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}},{"name":"Create a new hotel","id":"db393687-a73a-4bb3-a7a3-11690e9aa600","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"text/plain"}],"body":{"mode":"raw","raw":"{\n  \"cityId\": \"<uuid>\",\n  \"name\": \"<string>\",\n  \"owner\": \"<string>\",\n  \"starRate\": \"<integer>\",\n  \"street\": \"<string>\",\n  \"location\": {\n    \"longitude\": \"<double>\",\n    \"latitude\": \"<double>\"\n  },\n  \"checkInTime\": \"<time>\",\n  \"checkOutTime\": \"<time>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Hotels","description":"<p>Sample request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>POST /hotels\n{\n   \"name\": \"Paris Hotel\",\n   \"owner\": \"John Smith\",\n   \"street\": \"233 st.\",\n   \"location\": {\n      \"latitude\": \"10.2\",\n      \"longitude\": \"47.1\"\n   },\n   \"cityId\": \"{cityId}\"\n   \"starRate\" : \"5\",\n   \"checkInTime\": \"13:00:00.0000000\",\n   \"checkOutTime\": \"12:00:00.0000000\"\n}\n</code></pre>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Hotels"],"host":["/"],"query":[],"variable":[]}},"response":[{"id":"ed00b1e6-cb46-4979-8e7f-a6a76f08863a","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"text/plain"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"cityId\": \"<uuid>\",\n  \"name\": \"<string>\",\n  \"owner\": \"<string>\",\n  \"starRate\": \"<integer>\",\n  \"street\": \"<string>\",\n  \"location\": {\n    \"longitude\": \"<double>\",\n    \"latitude\": \"<double>\"\n  },\n  \"checkInTime\": \"<time>\",\n  \"checkOutTime\": \"<time>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Hotels"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"<uuid>\",\n  \"creationDate\": \"<dateTime>\",\n  \"lastModified\": \"<dateTime>\",\n  \"name\": \"<string>\",\n  \"owner\": \"<string>\",\n  \"starRate\": \"<integer>\",\n  \"roomsNumber\": \"<integer>\",\n  \"location\": {\n    \"longitude\": \"<double>\",\n    \"latitude\": \"<double>\"\n  },\n  \"street\": \"<string>\",\n  \"hotelImage\": {\n    \"imageUrl\": \"<string>\",\n    \"alternativeText\": \"<string>\"\n  }\n}"},{"id":"72ddb3e6-bf10-436a-a0ed-65ebf3eae8d6","name":"Returns the newly created hotel","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"cityId\": \"<uuid>\",\n  \"name\": \"<string>\",\n  \"owner\": \"<string>\",\n  \"starRate\": \"<integer>\",\n  \"street\": \"<string>\",\n  \"location\": {\n    \"longitude\": \"<double>\",\n    \"latitude\": \"<double>\"\n  },\n  \"checkInTime\": \"<time>\",\n  \"checkOutTime\": \"<time>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Hotels"},"status":"Created","code":201,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"bedb628a-f055-44df-92bc-a54d0d6f4ca8","name":"If the request data is invalid","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"cityId\": \"<uuid>\",\n  \"name\": \"<string>\",\n  \"owner\": \"<string>\",\n  \"starRate\": \"<integer>\",\n  \"street\": \"<string>\",\n  \"location\": {\n    \"longitude\": \"<double>\",\n    \"latitude\": \"<double>\"\n  },\n  \"checkInTime\": \"<time>\",\n  \"checkOutTime\": \"<time>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Hotels"},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"c2b91f5f-4d23-4e3d-ad7b-549cfcab43e5","name":"If the user is not authenticated","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"cityId\": \"<uuid>\",\n  \"name\": \"<string>\",\n  \"owner\": \"<string>\",\n  \"starRate\": \"<integer>\",\n  \"street\": \"<string>\",\n  \"location\": {\n    \"longitude\": \"<double>\",\n    \"latitude\": \"<double>\"\n  },\n  \"checkInTime\": \"<time>\",\n  \"checkOutTime\": \"<time>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Hotels"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"8635e823-eb6d-42a1-89f1-c682675b6a02","name":"If the user is not authorized (not an admin)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"cityId\": \"<uuid>\",\n  \"name\": \"<string>\",\n  \"owner\": \"<string>\",\n  \"starRate\": \"<integer>\",\n  \"street\": \"<string>\",\n  \"location\": {\n    \"longitude\": \"<double>\",\n    \"latitude\": \"<double>\"\n  },\n  \"checkInTime\": \"<time>\",\n  \"checkOutTime\": \"<time>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Hotels"},"status":"Forbidden","code":403,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"db393687-a73a-4bb3-a7a3-11690e9aa600"},{"name":"Retrieves a list of hotels based on the specified query parameters.","id":"c08016f0-109b-44f3-8278-d8bf5b5dd6f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"text/plain"}],"url":"//api/Hotels?PageNumber=<integer>&PageSize=<integer>&SearchTerm=<string>&SortColumn=CreationDate&SortOrder=Desc","description":"<p>The retrieval of hotels can be customized by providing various query parameters.\nThese parameters include sorting options, page number, page size, and a search term.</p>\n<p>Sample request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET /hotels?sortOrder=asc&amp;sortColumn=name&amp;pageNumber=1&amp;pageSize=10&amp;searchQuery=Carlton\n</code></pre>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Hotels"],"host":["/"],"query":[{"key":"PageNumber","value":"<integer>"},{"key":"PageSize","value":"<integer>"},{"key":"SearchTerm","value":"<string>"},{"key":"SortColumn","value":"CreationDate"},{"key":"SortOrder","value":"Desc"}],"variable":[]}},"response":[{"id":"2fc6918e-de44-4e29-8e31-f7b877e0357f","name":"Returns the list of hotels based on the query parameters.","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"text/plain"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Hotels?PageNumber=<integer>&PageSize=<integer>&SearchTerm=<string>&SortColumn=CreationDate&SortOrder=Desc","host":["/"],"path":["api","Hotels"],"query":[{"key":"PageNumber","value":"<integer>"},{"key":"PageSize","value":"<integer>"},{"key":"SearchTerm","value":"<string>"},{"key":"SortColumn","value":"CreationDate"},{"key":"SortOrder","value":"Desc"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"id\": \"<uuid>\",\n    \"creationDate\": \"<dateTime>\",\n    \"lastModified\": \"<dateTime>\",\n    \"name\": \"<string>\",\n    \"owner\": \"<string>\",\n    \"starRate\": \"<integer>\",\n    \"roomsNumber\": \"<integer>\",\n    \"location\": {\n      \"longitude\": \"<double>\",\n      \"latitude\": \"<double>\"\n    },\n    \"street\": \"<string>\",\n    \"hotelImage\": {\n      \"imageUrl\": \"<string>\",\n      \"alternativeText\": \"<string>\"\n    }\n  },\n  {\n    \"id\": \"<uuid>\",\n    \"creationDate\": \"<dateTime>\",\n    \"lastModified\": \"<dateTime>\",\n    \"name\": \"<string>\",\n    \"owner\": \"<string>\",\n    \"starRate\": \"<integer>\",\n    \"roomsNumber\": \"<integer>\",\n    \"location\": {\n      \"longitude\": \"<double>\",\n      \"latitude\": \"<double>\"\n    },\n    \"street\": \"<string>\",\n    \"hotelImage\": {\n      \"imageUrl\": \"<string>\",\n      \"alternativeText\": \"<string>\"\n    }\n  }\n]"},{"id":"251aef2a-cc3e-4333-9c7d-72aefc994f52","name":"If the request parameters are invalid or missing.","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Hotels?PageNumber=<integer>&PageSize=<integer>&SearchTerm=<string>&SortColumn=CreationDate&SortOrder=Desc","host":["/"],"path":["api","Hotels"],"query":[{"key":"PageNumber","value":"<integer>"},{"key":"PageSize","value":"<integer>"},{"key":"SearchTerm","value":"<string>"},{"key":"SortColumn","value":"CreationDate"},{"key":"SortOrder","value":"Desc"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"c08016f0-109b-44f3-8278-d8bf5b5dd6f8"}],"id":"1eb4f409-20e2-481a-84e5-bdfb1ea99826","_postman_id":"1eb4f409-20e2-481a-84e5-bdfb1ea99826","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}},{"name":"hotels","item":[{"name":"{hotelId}","item":[{"name":"reviews","item":[{"name":"{reviewId}","item":[{"name":"Get a review by its ID","id":"04f35922-c2bd-441b-b2af-38b8d52726e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"text/plain"}],"url":"//api/hotels/:hotelId/reviews/:reviewId","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","hotels",":hotelId","reviews",":reviewId"],"host":["/"],"query":[],"variable":[{"id":"ee077aa7-7fc2-4c4c-9c55-8677cf277daf","description":{"content":"<p>(Required) The ID of the hotel</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"hotelId"},{"id":"23776951-6275-4f46-bacf-76477557f154","description":{"content":"<p>(Required) The id of the review</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"reviewId"}]}},"response":[{"id":"8f8323d0-d695-4126-8129-f99a1fb23ba1","name":"Returns the review with the given ID","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"text/plain"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/hotels/:hotelId/reviews/:reviewId","host":["/"],"path":["api","hotels",":hotelId","reviews",":reviewId"],"variable":[{"key":"hotelId"},{"key":"reviewId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"<uuid>\",\n  \"title\": \"<string>\",\n  \"description\": \"<string>\",\n  \"rating\": \"<integer>\",\n  \"creationDate\": \"<dateTime>\",\n  \"lastModified\": \"<dateTime>\",\n  \"guest\": {\n    \"id\": \"<uuid>\",\n    \"firstName\": \"<string>\",\n    \"lastName\": \"<string>\",\n    \"fullName\": \"<string>\",\n    \"dateOfBirth\": \"<date>\",\n    \"address\": \"<string>\",\n    \"numberOfBookings\": \"<integer>\"\n  },\n  \"hotelId\": \"<uuid>\",\n  \"hotelName\": \"<string>\"\n}"},{"id":"b5a41870-0326-4cfa-85d3-9a3645eb7669","name":"If the review is not found","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/hotels/:hotelId/reviews/:reviewId","host":["/"],"path":["api","hotels",":hotelId","reviews",":reviewId"],"variable":[{"key":"hotelId"},{"key":"reviewId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"04f35922-c2bd-441b-b2af-38b8d52726e1"},{"name":"Update a review","id":"ab3c82c4-a449-4c22-821b-eda437bbfaf8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"<string>\",\n  \"description\": \"<string>\",\n  \"rating\": \"<integer>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/hotels/:hotelId/reviews/:reviewId","description":"<p>Sample request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>PUT /hotels/{hotelId}/reviews/{reviewId}\n{\n    \"Title\": \"Exceptional Hotel Experience\",\n    \"Description\": \"This hotel exceeded expectations with outstanding service, luxurious accommodations, and attention to detail. Highly recommended for a relaxing and memorable stay.\",\n    \"Rating\": 4\n}\n</code></pre>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","hotels",":hotelId","reviews",":reviewId"],"host":["/"],"query":[],"variable":[{"id":"6a86013d-78b3-413b-8e64-c32cfa5e75c4","description":{"content":"<p>(Required) The ID of the hotel having the review to update</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"hotelId"},{"id":"11b4bf89-74b9-4814-8d5f-88f49e247357","description":{"content":"<p>(Required) The ID of the review to update</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"reviewId"}]}},"response":[{"id":"4eb5fe37-afbc-4882-9b55-1bc8b8c45607","name":"Success","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"<string>\",\n  \"description\": \"<string>\",\n  \"rating\": \"<integer>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/hotels/:hotelId/reviews/:reviewId","host":["/"],"path":["api","hotels",":hotelId","reviews",":reviewId"],"variable":[{"key":"hotelId"},{"key":"reviewId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"97c59b1a-b7ef-4971-81aa-213c9384efb6","name":"If the review is successfully updated","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"<string>\",\n  \"description\": \"<string>\",\n  \"rating\": \"<integer>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/hotels/:hotelId/reviews/:reviewId","host":["/"],"path":["api","hotels",":hotelId","reviews",":reviewId"],"variable":[{"key":"hotelId"},{"key":"reviewId"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"b474acd0-dd21-4503-b502-16648e17465b","name":"If the request data is invalid","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"<string>\",\n  \"description\": \"<string>\",\n  \"rating\": \"<integer>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/hotels/:hotelId/reviews/:reviewId","host":["/"],"path":["api","hotels",":hotelId","reviews",":reviewId"],"variable":[{"key":"hotelId"},{"key":"reviewId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"ba58aa5c-4185-4558-bc15-0a0779bb2d82","name":"User is not authenticated.","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"<string>\",\n  \"description\": \"<string>\",\n  \"rating\": \"<integer>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/hotels/:hotelId/reviews/:reviewId","host":["/"],"path":["api","hotels",":hotelId","reviews",":reviewId"],"variable":[{"key":"hotelId"},{"key":"reviewId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"25c98147-afa0-4098-b182-c9c334f90e66","name":"User is not authorized (not a guest, or didn't visit the hotel).","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"<string>\",\n  \"description\": \"<string>\",\n  \"rating\": \"<integer>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/hotels/:hotelId/reviews/:reviewId","host":["/"],"path":["api","hotels",":hotelId","reviews",":reviewId"],"variable":[{"key":"hotelId"},{"key":"reviewId"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"b181baee-4c7d-4d5b-a9e0-e5dc525015d5","name":"If the hotel or review is not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"<string>\",\n  \"description\": \"<string>\",\n  \"rating\": \"<integer>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/hotels/:hotelId/reviews/:reviewId","host":["/"],"path":["api","hotels",":hotelId","reviews",":reviewId"],"variable":[{"key":"hotelId"},{"key":"reviewId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"ab3c82c4-a449-4c22-821b-eda437bbfaf8"},{"name":"Delete a review","id":"d9814669-4137-4f52-b1cd-359a9070e750","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"//api/hotels/:hotelId/reviews/:reviewId","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","hotels",":hotelId","reviews",":reviewId"],"host":["/"],"query":[],"variable":[{"id":"85d35cee-6806-42c5-90b8-9534a0997f0f","description":{"content":"<p>(Required) The ID of the hotel having the review to delete</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"hotelId"},{"id":"7a2c8785-7387-423b-906b-ffb6382af229","description":{"content":"<p>(Required) The ID of the review to delete</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"reviewId"}]}},"response":[{"id":"ab5204ac-4924-4747-874d-12bbb5b1ce03","name":"Success","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/hotels/:hotelId/reviews/:reviewId","host":["/"],"path":["api","hotels",":hotelId","reviews",":reviewId"],"variable":[{"key":"hotelId"},{"key":"reviewId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"1600b066-38f1-4111-86f2-92a9d24bb6b6","name":"If the operation is successfully done","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/hotels/:hotelId/reviews/:reviewId","host":["/"],"path":["api","hotels",":hotelId","reviews",":reviewId"],"variable":[{"key":"hotelId"},{"key":"reviewId"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"9066d45c-f926-483a-910e-3c950b364cfb","name":"User is not authenticated.","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/hotels/:hotelId/reviews/:reviewId","host":["/"],"path":["api","hotels",":hotelId","reviews",":reviewId"],"variable":[{"key":"hotelId"},{"key":"reviewId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"b9479c41-4a9b-4b7d-8b8d-2860565f29d5","name":"User is not authorized (not a guest, or didn't visit the hotel).","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/hotels/:hotelId/reviews/:reviewId","host":["/"],"path":["api","hotels",":hotelId","reviews",":reviewId"],"variable":[{"key":"hotelId"},{"key":"reviewId"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"d9814669-4137-4f52-b1cd-359a9070e750"}],"id":"f33bf908-33c5-4799-ae1f-b11cb1f71402","_postman_id":"f33bf908-33c5-4799-ae1f-b11cb1f71402","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}},{"name":"averageRating","item":[{"name":"Get hotel average rating","id":"e1aaa4c2-5dfe-476a-b2d7-b64fd7f9ce28","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"text/plain"}],"url":"//api/hotels/:hotelId/reviews/averageRating","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","hotels",":hotelId","reviews","averageRating"],"host":["/"],"query":[],"variable":[{"id":"b02af7d4-31d8-498e-8038-36c98ca77bd8","description":{"content":"<p>(Required) The ID of the hotel</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"hotelId"}]}},"response":[{"id":"e411a16f-e146-4517-a740-09161c537f40","name":"Returns hotel average rating","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"text/plain"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/hotels/:hotelId/reviews/averageRating","host":["/"],"path":["api","hotels",":hotelId","reviews","averageRating"],"variable":[{"key":"hotelId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"<double>"},{"id":"76ce86c2-6037-4780-a75d-aba5bbc2f3a1","name":"If the hotel is not found","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/hotels/:hotelId/reviews/averageRating","host":["/"],"path":["api","hotels",":hotelId","reviews","averageRating"],"variable":[{"key":"hotelId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"e1aaa4c2-5dfe-476a-b2d7-b64fd7f9ce28"}],"id":"a140b60c-d9d8-47eb-8fcf-54dd5401a13b","_postman_id":"a140b60c-d9d8-47eb-8fcf-54dd5401a13b","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}},{"name":"Adds a review for a specific hotel.","id":"3d611f6b-bca2-4071-94ab-2639adaf3b67","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"<string>\",\n  \"description\": \"<string>\",\n  \"rating\": \"<integer>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/hotels/:hotelId/reviews","description":"<p>This endpoint allows users to submit a review for a particular hotel identified by the provided hotelId.</p>\n<p>Sample request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>POST /hotels/{hotelId}/reviews\n{\n    \"Title\": \"Exceptional Hotel Experience\",\n    \"Description\": \"This hotel exceeded expectations with outstanding service, luxurious accommodations, and attention to detail. Highly recommended for a relaxing and memorable stay.\",\n    \"Rating\": 5\n }\n</code></pre>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","hotels",":hotelId","reviews"],"host":["/"],"query":[],"variable":[{"id":"dcaa3e52-3ce5-4e47-93ff-4af4fe04f307","description":{"content":"<p>(Required) The ID of the hotel for which the review is added.</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"hotelId"}]}},"response":[{"id":"f070f20f-449b-43a6-aa5f-cbbd217858f2","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"<string>\",\n  \"description\": \"<string>\",\n  \"rating\": \"<integer>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/hotels/:hotelId/reviews","host":["/"],"path":["api","hotels",":hotelId","reviews"],"variable":[{"key":"hotelId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"bbdd693b-2f39-4d82-b6cb-c1339abbd7f3","name":"Review successfully added.","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"<string>\",\n  \"description\": \"<string>\",\n  \"rating\": \"<integer>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/hotels/:hotelId/reviews","host":["/"],"path":["api","hotels",":hotelId","reviews"],"variable":[{"key":"hotelId"}]}},"status":"Created","code":201,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"56e320d8-1451-4170-b7e9-395354b9d256","name":"Invalid input or missing required fields.","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"<string>\",\n  \"description\": \"<string>\",\n  \"rating\": \"<integer>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/hotels/:hotelId/reviews","host":["/"],"path":["api","hotels",":hotelId","reviews"],"variable":[{"key":"hotelId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"9280583a-333c-4ac2-8e3e-8da3d0899562","name":"User is not authenticated.","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"<string>\",\n  \"description\": \"<string>\",\n  \"rating\": \"<integer>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/hotels/:hotelId/reviews","host":["/"],"path":["api","hotels",":hotelId","reviews"],"variable":[{"key":"hotelId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"2c24b8f9-5285-44f4-b1bb-b6799d70c392","name":"User is not authorized (not a guest, or didn't visit the hotel).","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"<string>\",\n  \"description\": \"<string>\",\n  \"rating\": \"<integer>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/hotels/:hotelId/reviews","host":["/"],"path":["api","hotels",":hotelId","reviews"],"variable":[{"key":"hotelId"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"d53672a2-386e-45f7-8414-691668f47e84","name":"Hotel with the specified id not found.","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"<string>\",\n  \"description\": \"<string>\",\n  \"rating\": \"<integer>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/hotels/:hotelId/reviews","host":["/"],"path":["api","hotels",":hotelId","reviews"],"variable":[{"key":"hotelId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"3d611f6b-bca2-4071-94ab-2639adaf3b67"},{"name":"Retrieves the reviews for a specific hotel based on the specified query parameters.","id":"a8c921ac-c8cc-41a3-879f-748872bbceea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"text/plain"}],"url":"//api/hotels/:hotelId/reviews?PageNumber=<integer>&PageSize=<integer>&SearchTerm=<string>&SortColumn=LastModified&SortOrder=Desc","description":"<p>The retrieval of hotel reviews can be customized by providing various query parameters.\nThese parameters include sorting options, page number, page size, and a search term.</p>\n<p>Sample request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET /hotels/{hotelId}/reviews?sortOrder=desc&amp;sortColumn=creationDate&amp;pageNumber=1&amp;pageSize=5&amp;searchQuery=Excellent\n</code></pre>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","hotels",":hotelId","reviews"],"host":["/"],"query":[{"key":"PageNumber","value":"<integer>"},{"key":"PageSize","value":"<integer>"},{"key":"SearchTerm","value":"<string>"},{"key":"SortColumn","value":"LastModified"},{"key":"SortOrder","value":"Desc"}],"variable":[{"id":"6c9456cb-e4cc-45b3-bd5b-8c93d1ee9083","description":{"content":"<p>(Required) The ID of the hotel.</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"hotelId"}]}},"response":[{"id":"ba091a49-105c-4006-885d-206aa5bceb90","name":"Returns the list of hotel reviews based on the query parameters.","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"text/plain"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/hotels/:hotelId/reviews?PageNumber=<integer>&PageSize=<integer>&SearchTerm=<string>&SortColumn=LastModified&SortOrder=Desc","host":["/"],"path":["api","hotels",":hotelId","reviews"],"query":[{"key":"PageNumber","value":"<integer>"},{"key":"PageSize","value":"<integer>"},{"key":"SearchTerm","value":"<string>"},{"key":"SortColumn","value":"LastModified"},{"key":"SortOrder","value":"Desc"}],"variable":[{"key":"hotelId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"<uuid>\",\n  \"title\": \"<string>\",\n  \"description\": \"<string>\",\n  \"rating\": \"<integer>\",\n  \"creationDate\": \"<dateTime>\",\n  \"lastModified\": \"<dateTime>\",\n  \"guest\": {\n    \"id\": \"<uuid>\",\n    \"firstName\": \"<string>\",\n    \"lastName\": \"<string>\",\n    \"fullName\": \"<string>\",\n    \"dateOfBirth\": \"<date>\",\n    \"address\": \"<string>\",\n    \"numberOfBookings\": \"<integer>\"\n  },\n  \"hotelId\": \"<uuid>\",\n  \"hotelName\": \"<string>\"\n}"},{"id":"2a7678c6-764a-4f51-9934-04379e4c426f","name":"If the request data is invalid","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/hotels/:hotelId/reviews?PageNumber=<integer>&PageSize=<integer>&SearchTerm=<string>&SortColumn=LastModified&SortOrder=Desc","host":["/"],"path":["api","hotels",":hotelId","reviews"],"query":[{"key":"PageNumber","value":"<integer>"},{"key":"PageSize","value":"<integer>"},{"key":"SearchTerm","value":"<string>"},{"key":"SortColumn","value":"LastModified"},{"key":"SortOrder","value":"Desc"}],"variable":[{"key":"hotelId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"b9af5b41-a00c-4a46-83dc-245d73cf4d1b","name":"If the hotel is not found.","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/hotels/:hotelId/reviews?PageNumber=<integer>&PageSize=<integer>&SearchTerm=<string>&SortColumn=LastModified&SortOrder=Desc","host":["/"],"path":["api","hotels",":hotelId","reviews"],"query":[{"key":"PageNumber","value":"<integer>"},{"key":"PageSize","value":"<integer>"},{"key":"SearchTerm","value":"<string>"},{"key":"SortColumn","value":"LastModified"},{"key":"SortOrder","value":"Desc"}],"variable":[{"key":"hotelId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"a8c921ac-c8cc-41a3-879f-748872bbceea"}],"id":"51c8d8f2-91a9-4520-8cd9-d8deccee38b5","_postman_id":"51c8d8f2-91a9-4520-8cd9-d8deccee38b5","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}}],"id":"b437e061-d6bf-430f-b78e-3dca9744f635","_postman_id":"b437e061-d6bf-430f-b78e-3dca9744f635","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}}],"id":"0687a336-ff2b-44d2-ac43-6208c5734b2a","_postman_id":"0687a336-ff2b-44d2-ac43-6208c5734b2a","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}},{"name":"Rooms","item":[{"name":"{id}","item":[{"name":"images","item":[{"name":"Uploads an image for a specific room.","id":"0900051d-6eca-4bb1-b98c-5f74df3701b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","value":null}]},"url":"//api/Rooms/:id/images?alternativeText=<string>&thumbnail=false","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Rooms",":id","images"],"host":["/"],"query":[{"description":{"content":"<p>Optional alternative text describing the image.</p>\n","type":"text/plain"},"key":"alternativeText","value":"<string>"},{"description":{"content":"<p>Specifies whether the image is a thumbnail.</p>\n","type":"text/plain"},"key":"thumbnail","value":"false"}],"variable":[{"id":"424b7546-dd98-4d47-ae35-d4c51b4d688c","description":{"content":"<p>(Required) The unique identifier of the room.</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"id"}]}},"response":[{"id":"bd4348af-e815-4ab7-93f8-3de6adf7469b","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":[]}]},"url":{"raw":"//api/Rooms/:id/images?alternativeText=<string>&thumbnail=false","host":["/"],"path":["api","Rooms",":id","images"],"query":[{"description":"Optional alternative text describing the image.","key":"alternativeText","value":"<string>"},{"description":"Specifies whether the image is a thumbnail.","key":"thumbnail","value":"false"}],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"6cd5a60a-4d73-4b79-9ea5-00f3a1a1ef75","name":"Indicates the image was successfully uploaded.","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":[]}]},"url":{"raw":"//api/Rooms/:id/images?alternativeText=<string>&thumbnail=false","host":["/"],"path":["api","Rooms",":id","images"],"query":[{"description":"Optional alternative text describing the image.","key":"alternativeText","value":"<string>"},{"description":"Specifies whether the image is a thumbnail.","key":"thumbnail","value":"false"}],"variable":[{"key":"id"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"09d1ba62-5aa9-4941-baaf-bc37e4a5caae","name":"Indicates invalid input data for the image upload.","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":[]}]},"url":{"raw":"//api/Rooms/:id/images?alternativeText=<string>&thumbnail=false","host":["/"],"path":["api","Rooms",":id","images"],"query":[{"description":"Optional alternative text describing the image.","key":"alternativeText","value":"<string>"},{"description":"Specifies whether the image is a thumbnail.","key":"thumbnail","value":"false"}],"variable":[{"key":"id"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"28011530-d46c-4e3d-9c60-22876c79044f","name":"Indicates that the room with the specified ID was not found.","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":[]}]},"url":{"raw":"//api/Rooms/:id/images?alternativeText=<string>&thumbnail=false","host":["/"],"path":["api","Rooms",":id","images"],"query":[{"description":"Optional alternative text describing the image.","key":"alternativeText","value":"<string>"},{"description":"Specifies whether the image is a thumbnail.","key":"thumbnail","value":"false"}],"variable":[{"key":"id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"0900051d-6eca-4bb1-b98c-5f74df3701b8"}],"id":"aa78cbd9-6a75-4c29-8ec8-f636ea7cf04b","_postman_id":"aa78cbd9-6a75-4c29-8ec8-f636ea7cf04b","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}},{"name":"Retrieves details of a specific room by its ID.","id":"44ed4dd7-6d7b-4342-be26-5bd3ff9126ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"text/plain"}],"url":"//api/Rooms/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Rooms",":id"],"host":["/"],"query":[],"variable":[{"id":"f7c107d6-7af0-48da-b6df-3802c759e24d","description":{"content":"<p>(Required) The unique identifier of the room.</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"id"}]}},"response":[{"id":"d3647c24-796c-4233-8753-f1e8fd1f3312","name":"Returns the details of the requested room.","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"text/plain"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Rooms/:id","host":["/"],"path":["api","Rooms",":id"],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"<uuid>\",\n  \"creationDate\": \"<dateTime>\",\n  \"lastModified\": \"<dateTime>\",\n  \"roomNumber\": \"<integer>\",\n  \"roomType\": \"Budget\",\n  \"adultsCapacity\": \"<integer>\",\n  \"childrenCapacity\": \"<integer>\",\n  \"hotelName\": \"<string>\",\n  \"price\": \"<double>\",\n  \"images\": [\n    {\n      \"imageUrl\": \"<string>\",\n      \"alternativeText\": \"<string>\"\n    },\n    {\n      \"imageUrl\": \"<string>\",\n      \"alternativeText\": \"<string>\"\n    }\n  ],\n  \"amenities\": [\n    {\n      \"id\": \"<uuid>\",\n      \"name\": \"<string>\",\n      \"description\": \"<string>\"\n    },\n    {\n      \"id\": \"<uuid>\",\n      \"name\": \"<string>\",\n      \"description\": \"<string>\"\n    }\n  ]\n}"},{"id":"a9097ced-68ea-4f81-88d3-066b5598c319","name":"Indicates that the room with the specified ID was not found.","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Rooms/:id","host":["/"],"path":["api","Rooms",":id"],"variable":[{"key":"id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"44ed4dd7-6d7b-4342-be26-5bd3ff9126ca"},{"name":"Deletes a room by its ID.","id":"6a0dbb8e-d4b2-45c3-a8e9-5bf16f65c407","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"//api/Rooms/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Rooms",":id"],"host":["/"],"query":[],"variable":[{"id":"e4c77cd8-8f5b-49ca-9d28-bf5f50fad51d","description":{"content":"<p>(Required) The unique identifier of the room to be deleted.</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"id"}]}},"response":[{"id":"c28b48bd-96a7-434e-b5f1-4f73d9ceb3dc","name":"Success","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Rooms/:id","host":["/"],"path":["api","Rooms",":id"],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"4038d95f-6895-46f8-a9c8-514a6539ca9e","name":"Indicates the room was successfully deleted.","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Rooms/:id","host":["/"],"path":["api","Rooms",":id"],"variable":[{"key":"id"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"32a088cc-7fce-49bb-b38f-b680f31e34bd","name":"Indicates the user is not authenticated.","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Rooms/:id","host":["/"],"path":["api","Rooms",":id"],"variable":[{"key":"id"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"8b70296e-cb77-46d8-b392-2c1968e217fe","name":"Indicates the user is not authorized to delete the room.","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Rooms/:id","host":["/"],"path":["api","Rooms",":id"],"variable":[{"key":"id"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"6a0dbb8e-d4b2-45c3-a8e9-5bf16f65c407"},{"name":"Updates the details of an existing room.","id":"52d6afc6-6dd4-423d-b95e-6dd80e8b8f32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"roomNumber\": \"<integer>\",\n  \"adultsCapacity\": \"<integer>\",\n  \"childrenCapacity\": \"<integer>\",\n  \"price\": \"<double>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Rooms/:id","description":"<p>Example request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>PUT /rooms/{roomId}\n{\n   \"roomNumber\": \"651\",\n   \"adultsCapacity\": 2,\n   \"childrenCapacity\": 3,\n   \"price\": 250\n}\n</code></pre>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Rooms",":id"],"host":["/"],"query":[],"variable":[{"id":"a0b7e2f5-860c-475c-bdca-0462682ff68d","description":{"content":"<p>(Required) The unique identifier of the room to update.</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"id"}]}},"response":[{"id":"14cb66a9-3481-40d4-9f6c-fd76673bda66","name":"Success","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"roomNumber\": \"<integer>\",\n  \"adultsCapacity\": \"<integer>\",\n  \"childrenCapacity\": \"<integer>\",\n  \"price\": \"<double>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Rooms/:id","host":["/"],"path":["api","Rooms",":id"],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"2a1c8679-6d7f-4547-908d-a4b2d9be7d5c","name":"Indicates the room was successfully updated.","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"roomNumber\": \"<integer>\",\n  \"adultsCapacity\": \"<integer>\",\n  \"childrenCapacity\": \"<integer>\",\n  \"price\": \"<double>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Rooms/:id","host":["/"],"path":["api","Rooms",":id"],"variable":[{"key":"id"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"f2ee1c2d-d169-4825-915f-c5ac048d28eb","name":"Indicates invalid input data for room update.","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"roomNumber\": \"<integer>\",\n  \"adultsCapacity\": \"<integer>\",\n  \"childrenCapacity\": \"<integer>\",\n  \"price\": \"<double>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Rooms/:id","host":["/"],"path":["api","Rooms",":id"],"variable":[{"key":"id"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"6a120ba6-a543-4564-8cd8-b643124323f5","name":"Indicates that the room with the specified ID was not found.","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"roomNumber\": \"<integer>\",\n  \"adultsCapacity\": \"<integer>\",\n  \"childrenCapacity\": \"<integer>\",\n  \"price\": \"<double>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Rooms/:id","host":["/"],"path":["api","Rooms",":id"],"variable":[{"key":"id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"52d6afc6-6dd4-423d-b95e-6dd80e8b8f32"}],"id":"beae2b86-f695-4381-b8fb-6258f37f07df","_postman_id":"beae2b86-f695-4381-b8fb-6258f37f07df","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}},{"name":"{roomId}","item":[{"name":"amenities","item":[{"name":"Add a list of amenities to a room.","id":"3849ecac-7c6c-4bff-99dc-32b3b4880a66","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"[\n  \"<uuid>\",\n  \"<uuid>\"\n]","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Rooms/:roomId/amenities","description":"<p>Sample request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">POST /rooms/{roomId}/amenities\n[\n    \"eabc6edb-1a9a-4795-972e-2c44625cbeda\", \n    \"586ff0db-6e9e-4879-b082-7e40c900cbdd\"\n]\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Rooms",":roomId","amenities"],"host":["/"],"query":[],"variable":[{"id":"7ab42503-e9f4-47bc-b294-7f56e1281dc6","description":{"content":"<p>(Required) The id of the room to add amenities to.</p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"roomId"}]}},"response":[{"id":"a9723562-5723-4f82-be3c-16164f2e619e","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"[\n  \"<uuid>\",\n  \"<uuid>\"\n]","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Rooms/:roomId/amenities","host":["/"],"path":["api","Rooms",":roomId","amenities"],"variable":[{"key":"roomId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"6272b229-f929-46ff-bb5e-72f2d9adc7af","name":"If the amenities are successfully added.","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"[\n  \"<uuid>\",\n  \"<uuid>\"\n]","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Rooms/:roomId/amenities","host":["/"],"path":["api","Rooms",":roomId","amenities"],"variable":[{"key":"roomId"}]}},"status":"Created","code":201,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"afe1170e-a689-47ed-85f1-b6863249ecf4","name":"If the operation is successful but returns no content.","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"[\n  \"<uuid>\",\n  \"<uuid>\"\n]","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Rooms/:roomId/amenities","host":["/"],"path":["api","Rooms",":roomId","amenities"],"variable":[{"key":"roomId"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"4c44577e-2436-4b51-8474-52682d127182","name":"If the request data is invalid.","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"[\n  \"<uuid>\",\n  \"<uuid>\"\n]","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Rooms/:roomId/amenities","host":["/"],"path":["api","Rooms",":roomId","amenities"],"variable":[{"key":"roomId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"f4887e75-1a33-48d5-88ea-da079f7ae0c3","name":"If the user is not authenticated.","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"[\n  \"<uuid>\",\n  \"<uuid>\"\n]","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Rooms/:roomId/amenities","host":["/"],"path":["api","Rooms",":roomId","amenities"],"variable":[{"key":"roomId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"cdfc2e7a-de2b-4e1a-8a37-c1411ed69140","name":"If the user is not authorized (not an admin).","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"[\n  \"<uuid>\",\n  \"<uuid>\"\n]","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"//api/Rooms/:roomId/amenities","host":["/"],"path":["api","Rooms",":roomId","amenities"],"variable":[{"key":"roomId"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"3849ecac-7c6c-4bff-99dc-32b3b4880a66"},{"name":"Retrieves a paginated and optionally sorted list of amenities for a room based on the specified query parameters.","id":"efcbb159-1164-4025-b4f9-29360825d316","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"text/plain"}],"url":"//api/Rooms/:roomId/amenities?PageNumber=<integer>&PageSize=<integer>&SearchTerm=<string>&SortColumn=Name&SortOrder=Desc","description":"<p>This endpoint allows clients to fetch amenities with options for sorting, pagination, and filtering.\nThe available query parameters include:</p>\n<ul>\n<li><strong>SortOrder</strong>: Specifies the sorting order (e.g., ascending or descending).</li>\n<li><strong>SortColumn</strong>: Specifies the column to sort by (e.g., name, description).</li>\n<li><strong>PageNumber</strong>: Specifies the page number for pagination.</li>\n<li><strong>PageSize</strong>: Specifies the number of items per page.</li>\n<li><strong>SearchTerm</strong>: Filters amenities based on a search term that matches amenity name or Description.</li>\n</ul>\n<p>Example usage:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET /hotels/{roomId}/amenities?sortOrder=asc&amp;sortColumn=name&amp;pageNumber=1&amp;pageSize=10&amp;searchTerm=SmartTV\n</code></pre><p>The response includes paginated metadata in the <code>X-Pagination</code> header and links to related pages (e.g., next, previous).</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Rooms",":roomId","amenities"],"host":["/"],"query":[{"key":"PageNumber","value":"<integer>"},{"key":"PageSize","value":"<integer>"},{"key":"SearchTerm","value":"<string>"},{"key":"SortColumn","value":"Name"},{"key":"SortOrder","value":"Desc"}],"variable":[{"id":"3ceee56f-e6d7-49ac-8adc-6ba7b72eb45d","description":{"content":"<p>(Required) </p>\n","type":"text/plain"},"type":"any","value":"<uuid>","key":"roomId"}]}},"response":[{"id":"139db088-421b-4b14-983a-95e1c0411859","name":"Returns the list of amenities that match the query parameters.","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"text/plain"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Rooms/:roomId/amenities?PageNumber=<integer>&PageSize=<integer>&SearchTerm=<string>&SortColumn=Name&SortOrder=Desc","host":["/"],"path":["api","Rooms",":roomId","amenities"],"query":[{"key":"PageNumber","value":"<integer>"},{"key":"PageSize","value":"<integer>"},{"key":"SearchTerm","value":"<string>"},{"key":"SortColumn","value":"Name"},{"key":"SortOrder","value":"Desc"}],"variable":[{"key":"roomId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"id\": \"<uuid>\",\n    \"name\": \"<string>\",\n    \"description\": \"<string>\"\n  },\n  {\n    \"id\": \"<uuid>\",\n    \"name\": \"<string>\",\n    \"description\": \"<string>\"\n  }\n]"},{"id":"af80e76b-e127-47e4-8a10-fd63752f535b","name":"Returned if the provided query parameters are invalid.","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Rooms/:roomId/amenities?PageNumber=<integer>&PageSize=<integer>&SearchTerm=<string>&SortColumn=Name&SortOrder=Desc","host":["/"],"path":["api","Rooms",":roomId","amenities"],"query":[{"key":"PageNumber","value":"<integer>"},{"key":"PageSize","value":"<integer>"},{"key":"SearchTerm","value":"<string>"},{"key":"SortColumn","value":"Name"},{"key":"SortOrder","value":"Desc"}],"variable":[{"key":"roomId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"efcbb159-1164-4025-b4f9-29360825d316"}],"id":"b5f27e5c-0a67-46c5-a200-cac94a736cb7","_postman_id":"b5f27e5c-0a67-46c5-a200-cac94a736cb7","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}}],"id":"9fa07e21-2989-4128-b9b4-223fbd00ba7c","_postman_id":"9fa07e21-2989-4128-b9b4-223fbd00ba7c","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}},{"name":"Creates a new room in the system.","id":"bb55fb62-c558-4061-9f42-81baf5e01e8c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"text/plain"}],"body":{"mode":"raw","raw":"{\n  \"hotelId\": \"<uuid>\",\n  \"roomNumber\": \"<integer>\",\n  \"adultsCapacity\": \"<integer>\",\n  \"childrenCapacity\": \"<integer>\",\n  \"roomType\": \"Boutique\",\n  \"price\": \"<double>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Rooms","description":"<p>Example request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>POST /rooms\n{\n   \"hotelId\": \"{hotelId}\",\n   \"roomNumber\": \"651\",\n   \"adultsCapacity\": 2,\n   \"childrenCapacity\": 3,\n   \"price\": 250,\n   \"roomType\": \"Standard\"\n}\n</code></pre>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Rooms"],"host":["/"],"query":[],"variable":[]}},"response":[{"id":"3c83ddac-9f46-4b9a-83ff-d96dc6bef295","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"text/plain"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"hotelId\": \"<uuid>\",\n  \"roomNumber\": \"<integer>\",\n  \"adultsCapacity\": \"<integer>\",\n  \"childrenCapacity\": \"<integer>\",\n  \"roomType\": \"Boutique\",\n  \"price\": \"<double>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Rooms"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"<uuid>\",\n  \"creationDate\": \"<dateTime>\",\n  \"lastModified\": \"<dateTime>\",\n  \"roomNumber\": \"<integer>\",\n  \"roomType\": \"Budget\",\n  \"adultsCapacity\": \"<integer>\",\n  \"childrenCapacity\": \"<integer>\",\n  \"hotelName\": \"<string>\",\n  \"price\": \"<double>\"\n}"},{"id":"932acd9f-aaf5-4f76-b2b7-1b52ce6a8f9b","name":"Indicates that the room was successfully created.","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"hotelId\": \"<uuid>\",\n  \"roomNumber\": \"<integer>\",\n  \"adultsCapacity\": \"<integer>\",\n  \"childrenCapacity\": \"<integer>\",\n  \"roomType\": \"Boutique\",\n  \"price\": \"<double>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Rooms"},"status":"Created","code":201,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"6b71202c-7ddf-41fd-8273-8232acb1b7a4","name":"Indicates invalid input data for room creation.","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"hotelId\": \"<uuid>\",\n  \"roomNumber\": \"<integer>\",\n  \"adultsCapacity\": \"<integer>\",\n  \"childrenCapacity\": \"<integer>\",\n  \"roomType\": \"Boutique\",\n  \"price\": \"<double>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Rooms"},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"17aab293-33d8-4b32-a686-216e5517e04e","name":"Indicates the user is not authenticated.","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"hotelId\": \"<uuid>\",\n  \"roomNumber\": \"<integer>\",\n  \"adultsCapacity\": \"<integer>\",\n  \"childrenCapacity\": \"<integer>\",\n  \"roomType\": \"Boutique\",\n  \"price\": \"<double>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Rooms"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"2c9411ec-adac-4e96-92bd-3485fec69187","name":"Indicates the user is not authorized to perform this action.","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"hotelId\": \"<uuid>\",\n  \"roomNumber\": \"<integer>\",\n  \"adultsCapacity\": \"<integer>\",\n  \"childrenCapacity\": \"<integer>\",\n  \"roomType\": \"Boutique\",\n  \"price\": \"<double>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"//api/Rooms"},"status":"Forbidden","code":403,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"bb55fb62-c558-4061-9f42-81baf5e01e8c"},{"name":"Retrieves a paginated list of rooms based on query parameters.","id":"3121e5c1-760d-4c5c-82d5-e9f1fad9d587","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"text/plain"}],"url":"//api/Rooms?PageNumber=<integer>&PageSize=<integer>&SearchTerm=<string>&SortColumn=AdultsCapacity&SortOrder=Desc","description":"<p>Example request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET /rooms?sortOrder=asc&amp;sortColumn=price&amp;pageNumber=1&amp;pageSize=10&amp;searchQuery=Ritz\n</code></pre>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}},"urlObject":{"path":["api","Rooms"],"host":["/"],"query":[{"key":"PageNumber","value":"<integer>"},{"key":"PageSize","value":"<integer>"},{"key":"SearchTerm","value":"<string>"},{"key":"SortColumn","value":"AdultsCapacity"},{"key":"SortOrder","value":"Desc"}],"variable":[]}},"response":[{"id":"73611a71-5386-45a4-9e7b-652ccc0eee1e","name":"Returns a list of rooms matching the query parameters.","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"text/plain"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Rooms?PageNumber=<integer>&PageSize=<integer>&SearchTerm=<string>&SortColumn=AdultsCapacity&SortOrder=Desc","host":["/"],"path":["api","Rooms"],"query":[{"key":"PageNumber","value":"<integer>"},{"key":"PageSize","value":"<integer>"},{"key":"SearchTerm","value":"<string>"},{"key":"SortColumn","value":"AdultsCapacity"},{"key":"SortOrder","value":"Desc"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"id\": \"<uuid>\",\n    \"creationDate\": \"<dateTime>\",\n    \"lastModified\": \"<dateTime>\",\n    \"roomNumber\": \"<integer>\",\n    \"roomType\": \"Boutique\",\n    \"adultsCapacity\": \"<integer>\",\n    \"childrenCapacity\": \"<integer>\",\n    \"hotelName\": \"<string>\",\n    \"price\": \"<double>\"\n  },\n  {\n    \"id\": \"<uuid>\",\n    \"creationDate\": \"<dateTime>\",\n    \"lastModified\": \"<dateTime>\",\n    \"roomNumber\": \"<integer>\",\n    \"roomType\": \"Budget\",\n    \"adultsCapacity\": \"<integer>\",\n    \"childrenCapacity\": \"<integer>\",\n    \"hotelName\": \"<string>\",\n    \"price\": \"<double>\"\n  }\n]"},{"id":"c494767d-6c93-42fa-b77a-0beba7c30a0c","name":"Indicates invalid query parameters.","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"//api/Rooms?PageNumber=<integer>&PageSize=<integer>&SearchTerm=<string>&SortColumn=AdultsCapacity&SortOrder=Desc","host":["/"],"path":["api","Rooms"],"query":[{"key":"PageNumber","value":"<integer>"},{"key":"PageSize","value":"<integer>"},{"key":"SearchTerm","value":"<string>"},{"key":"SortColumn","value":"AdultsCapacity"},{"key":"SortOrder","value":"Desc"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"3121e5c1-760d-4c5c-82d5-e9f1fad9d587"}],"id":"6dc602c7-a9a5-45f2-aca3-e3c87b62a4fe","_postman_id":"6dc602c7-a9a5-45f2-aca3-e3c87b62a4fe","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}}],"id":"2b58963f-95ef-4512-8e59-f3820c456208","_postman_id":"2b58963f-95ef-4512-8e59-f3820c456208","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":true,"source":{"_postman_id":"6b69e506-1631-40dc-b65b-88b49d9a906b","id":"6b69e506-1631-40dc-b65b-88b49d9a906b","name":"Hotel Booking Blatform API","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]}},"variable":[{"key":"baseUrl","value":"/"}]}