{"info":{"_postman_id":"a6d44340-6a35-4127-b229-8c875d2d74c9","name":"Hotel_api","description":"<html><head></head><body><p>Nodejs Hotel REST API</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"3407371","collectionId":"a6d44340-6a35-4127-b229-8c875d2d74c9","publishedId":"RWguxHLr","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2018-10-21T15:40:15.000Z"},"item":[{"name":"create user","id":"ba9e4095-24af-469f-a810-2287e7617145","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"http://localhost:4000/user/","urlObject":{"protocol":"http","port":"4000","path":["user",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ba9e4095-24af-469f-a810-2287e7617145"},{"name":"update User","id":"dc6210b0-be01-42b7-9af4-8e3d9509d164","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"http://localhost:4000/user/2","urlObject":{"protocol":"http","port":"4000","path":["user","2"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"dc6210b0-be01-42b7-9af4-8e3d9509d164"},{"name":"Delete user","id":"6b1ffec0-a31e-4706-826c-86e959551ca0","request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:4000/user/2","urlObject":{"protocol":"http","port":"4000","path":["user","2"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"6b1ffec0-a31e-4706-826c-86e959551ca0"},{"name":"Delete Hotel","id":"e4542723-b471-462b-a23c-6b62ee744929","request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:4000/hotel/1","urlObject":{"protocol":"http","port":"4000","path":["hotel","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e4542723-b471-462b-a23c-6b62ee744929"},{"name":"create hotel","id":"c6a80707-913d-4030-877d-5d556f589774","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"http://localhost:4000/hotel/","urlObject":{"protocol":"http","port":"4000","path":["hotel",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c6a80707-913d-4030-877d-5d556f589774"},{"name":"Create hotel","id":"11a5a2bf-9197-4639-ba58-20e696d39bd8","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"http://localhost:4000/hotel","urlObject":{"protocol":"http","port":"4000","path":["hotel"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"11a5a2bf-9197-4639-ba58-20e696d39bd8"},{"name":"Update hotel","id":"db10c456-e57d-4560-b4dd-84011f846a4b","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"http://localhost:4000/hotel/1","urlObject":{"protocol":"http","port":"4000","path":["hotel","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"db10c456-e57d-4560-b4dd-84011f846a4b"},{"name":"Create room","id":"7b6a4934-943f-46f1-8ec3-1ab44554b868","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"http://localhost:4000/hotel/1/room","urlObject":{"protocol":"http","port":"4000","path":["hotel","1","room"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7b6a4934-943f-46f1-8ec3-1ab44554b868"},{"name":"bulk Create room","id":"7533aef4-3ef1-414e-b468-a5f2dde0cc45","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"http://localhost:4000/hotel/1/room/bulk","urlObject":{"protocol":"http","port":"4000","path":["hotel","1","room","bulk"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7533aef4-3ef1-414e-b468-a5f2dde0cc45"},{"name":"Create booking","id":"30272046-8f19-4c8e-91b0-7f37c62e19d7","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-token","value":"null"}],"body":{"mode":"raw","raw":""},"url":"http://localhost:4000/booking/create","urlObject":{"protocol":"http","port":"4000","path":["booking","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"30272046-8f19-4c8e-91b0-7f37c62e19d7"},{"name":"Serach for specific hotel","id":"823dd00c-1843-411d-8028-98dfbf85e683","request":{"method":"GET","header":[{"key":"","value":""}],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:4000/search/1/?check_in_date=2018-11-20","urlObject":{"protocol":"http","port":"4000","path":["search","1",""],"host":["localhost"],"query":[{"key":"check_in_date","value":"2018-11-20"}],"variable":[]}},"response":[],"_postman_id":"823dd00c-1843-411d-8028-98dfbf85e683"},{"name":"Serach for all hotels","id":"9ad5ef40-3a5c-4bc4-aa71-79cd2999b57f","request":{"method":"GET","header":[{"key":"","value":""}],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:4000/search/?check_in_date=2018-11-20","urlObject":{"protocol":"http","port":"4000","path":["search",""],"host":["localhost"],"query":[{"key":"check_in_date","value":"2018-11-20"}],"variable":[]}},"response":[],"_postman_id":"9ad5ef40-3a5c-4bc4-aa71-79cd2999b57f"}]}