{"info":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","description":"<html><head></head><body><p>The following pages describe the Tripstore API </p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"1180213","collectionId":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","publishedId":"RWToQHut","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2018-09-05T12:58:10.000Z"},"item":[{"name":"Authentication ","item":[{"name":"Login ","id":"cd9a8e74-fd1a-4a95-9323-e005cd70f2ca","request":{"method":"POST","header":[{"key":"Authorization","value":"Token ","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"email","value":"test@test.com","type":"text"},{"key":"password","value":"123456","type":"text"}]},"url":"http://localhost:3000/api/v1/login","description":"<p>Login the user to get the token </p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"cd9a8e74-fd1a-4a95-9323-e005cd70f2ca"},{"name":"Logout ","id":"7c4e5db3-45a1-4d8d-9200-bd31697ccb96","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:3000/api/v1/logout","description":"<p>Logout the user </p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","logout"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7c4e5db3-45a1-4d8d-9200-bd31697ccb96"},{"name":"Forgot Password","id":"9529057b-4a4d-400c-8a4b-88f8315d8033","request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"test@test.com","type":"text"}]},"url":"http://localhost:3000/api/v1/forgot","description":"<p>Routes for resetting ones password</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","forgot"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9529057b-4a4d-400c-8a4b-88f8315d8033"},{"name":"Reset Passowrd ","id":"63dcf47d-4535-4fd7-a251-2718e2a6615e","request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"password","value":"123456","type":"text"}]},"url":"http://localhost:3000/api/v1/reset?token=5abaa8a1d4418c65ac31","description":"<p>Reset your password. </p>\n<ul>\n<li>Requires a reset token in path params </li>\n<li>Requires a new password as form params</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","reset"],"host":["localhost"],"query":[{"key":"token","value":"5abaa8a1d4418c65ac31"}],"variable":[]}},"response":[],"_postman_id":"63dcf47d-4535-4fd7-a251-2718e2a6615e"}],"id":"63c9236b-ef5d-40e2-9017-edbc55c8db4b","description":"<p>Contains all the authentication routes</p>\n","_postman_id":"63c9236b-ef5d-40e2-9017-edbc55c8db4b","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}}},{"name":"Credentials ","item":[{"name":"Get all the credentials","id":"498602e4-2692-4ed2-bc46-0a7c96d6cf6e","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"","description":"<p>Gets all the credentials (admin only)</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"498602e4-2692-4ed2-bc46-0a7c96d6cf6e"},{"name":"Get a single credentials record. ","id":"d4d2a41f-e88c-43f4-aa47-7aa19254ba8d","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"","description":"<p>Gets a credential by its ID (admin only)</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"d4d2a41f-e88c-43f4-aa47-7aa19254ba8d"},{"name":"Post a new credential to the db ","id":"9bc66cc5-e305-4823-894f-07a9c8c3dbd6","request":{"method":"POST","header":[{"key":"Authorization","value":"Token kon5JyQNoLKwA4XfzEYgXG1g"}],"body":{"mode":"formdata","formdata":[{"key":"credential[name]","value":"ABT123","type":"text"},{"key":"credential[password]","value":"123123123","type":"text"},{"key":"credential[key]","value":"1231253423412423512","type":"text"},{"key":"credential[account_number]","value":"ABT123","type":"text"},{"key":"credential[initials]","value":"DRM","type":"text"}]},"url":"http://localhost:3000/api/v1/credentials","description":"<p>Posts a new credential to the DB. (admin only)</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","credentials"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9bc66cc5-e305-4823-894f-07a9c8c3dbd6"}],"id":"b851117b-e586-4fd8-b9a2-fa88155a388e","description":"<p>Holds all the routes for credentials (Admin only)</p>\n","_postman_id":"b851117b-e586-4fd8-b9a2-fa88155a388e","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}}},{"name":"Users","item":[{"name":"Get all users (admin only)","id":"37ceb454-17e4-481e-b3c3-6f6ab730be21","request":{"method":"GET","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:3000/api/v1/users?page=1&per_page=2","description":"<p>Get all the users (admin only)</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users"],"host":["localhost"],"query":[{"key":"page","value":"1"},{"key":"per_page","value":"2"}],"variable":[]}},"response":[],"_postman_id":"37ceb454-17e4-481e-b3c3-6f6ab730be21"},{"name":"Get a single user (members can only see own data)","id":"5741e511-544e-4243-982b-057d50a87ce2","request":{"method":"GET","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:3000/api/v1/users/1","description":"<p>Get a specific the user (admin only)\nGet own user (member only)</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5741e511-544e-4243-982b-057d50a87ce2"},{"name":"Post a new user (open to any user)","id":"0daa4873-735e-4309-965c-2161f2924471","request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"user[name]","value":"test","type":"text"},{"key":"user[email]","value":"test2@test.com","type":"text"},{"key":"user[password]","value":"123456","type":"text"},{"key":"user[password]","value":"123456","type":"text"},{"key":"user[admin]","value":"true","type":"text"}]},"url":"http://localhost:3000/api/v1/users","description":"<p>Create a admin new user (open to admins only)</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"0daa4873-735e-4309-965c-2161f2924471"},{"name":"Post Admin user (Only admins can action)","id":"141d4a6e-6d8a-4f96-873a-02aba6e58fba","request":{"method":"POST","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[{"key":"user[name]","value":"test","type":"text"},{"key":"user[email]","value":"admin3@test.com","type":"text"},{"key":"user[password]","value":"123456","type":"text"},{"key":"user[password]","value":"123456","type":"text"},{"key":"user[admin]","value":"true","type":"text"},{"key":"user[member]","value":"true","type":"text"}]},"url":"http://localhost:3000/api/v1/moderator","description":"<p>Create a new user (open to any user)</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","moderator"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"141d4a6e-6d8a-4f96-873a-02aba6e58fba"},{"name":"Update a user (members can update own data)","id":"83503e2b-4f5f-4056-93f8-3b881d9e0599","request":{"method":"PUT","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[{"key":"user[name]","value":"Scott","type":"text"},{"key":"user[email]","value":"sdpersonal.sd@gmail.com","type":"text"},{"key":"user[password]","value":"123456","type":"text"},{"key":"user[password]","value":"123456","type":"text"}]},"url":"http://localhost:3000/api/v1/users/1","description":"<p>Update a user by ID (all admins can action. member can only action on own user)</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"83503e2b-4f5f-4056-93f8-3b881d9e0599"},{"name":"Delete a user ","id":"66c6547a-42f3-4fea-a541-09af43edbabf","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:3000/api/v1/users/3","description":"<p>Admin can delete all users, member can delete own user</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","3"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"66c6547a-42f3-4fea-a541-09af43edbabf"}],"id":"a261748f-70f3-4371-927b-ff7ad705b20e","description":"<p>Contains all the USER routes </p>\n","_postman_id":"a261748f-70f3-4371-927b-ff7ad705b20e","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}}},{"name":"Bookings","item":[{"name":"Get all bookings (only admins)","id":"23a5453e-2f65-4328-95d5-297d1a2fb920","request":{"method":"GET","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:3000/api/v1/users/1/bookings?page=1&per_page=10","description":"<p>You can use pagination on this endpoint supply :page and :per_page params. </p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","1","bookings"],"host":["localhost"],"query":[{"key":"page","value":"1"},{"key":"per_page","value":"10"}],"variable":[]}},"response":[],"_postman_id":"23a5453e-2f65-4328-95d5-297d1a2fb920"},{"name":"Get a single booking for given user ","id":"b1b96f57-84e4-45ca-ba22-1fb07ce21775","request":{"method":"GET","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:3000/api/v1/users/1/bookings/1","description":"<ul>\n<li>Admins have access to all </li>\n<li>Members have access to own data</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","1","bookings","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b1b96f57-84e4-45ca-ba22-1fb07ce21775"},{"name":"Post a booking for a given user","id":"cf901e27-585b-4672-a48d-151870c3de34","request":{"method":"POST","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[{"key":"booking[ABTANumber]","value":"AF341","type":"text"},{"key":"booking[token]","value":"ahsdjkasgjdasgdjhasgdhjagdhj","type":"text"},{"key":"booking[ArrivalDate]","value":"2018-03-15","type":"text"},{"key":"booking[Nights]","value":"2","type":"text"},{"key":"booking[RoomCode]","value":"GHJS12","type":"text"},{"key":"booking[Adults]","value":"2","type":"text"},{"key":"booking[Children]","value":"2","type":"text"},{"key":"booking[ParkingDays]","value":"2","type":"text"},{"key":"booking[Title]","value":"Mr Stanley ","type":"text"},{"key":"booking[Initial]","value":"SM","type":"text"},{"key":"booking[Surname]","value":"Morris","type":"text"},{"key":"boooking[Address]","value":"1 Harrisen Hill, Somewhere ","type":"text"},{"key":"booking[Town]","value":"Leatherhead","type":"text"},{"key":"booking[County]","value":"Surrey","type":"text"},{"key":"booking[PostCode]","value":"KT245HX","type":"text"},{"key":"booking[DayPhone]","value":"1","type":"text"},{"key":"booking[Email]","value":"test@test.com","type":"text"},{"key":"booking[CustomerRef]","value":"GSAHJ56","type":"text"},{"key":"booking[Remarks]","value":"Test the remarks field","type":"text"},{"key":"booking[Waiver]","value":"Not sure what this is for ","type":"text"},{"key":"booking[DataProtection]","value":"Bollocks","type":"text"},{"key":"booking[PriceCheckFlag]","value":"More bollocks ","type":"text"},{"key":"booking[PriceCheckPrice]","value":"1234.12","type":"text"},{"key":"booking[lang]","value":"English","type":"text"},{"key":"booking[SecondRoomType]","value":"Test Second Room","type":"text"},{"key":"booking[SecondRoomCode]","value":"ADS123","type":"text"},{"key":"booking[SecondRoomAdults]","value":"2","type":"text"},{"key":"booking[SecondRoomChildren]","value":"1","type":"text"},{"key":"booking[active]","value":"true","type":"text"},{"key":"booking[success]","value":"true","type":"text"}]},"url":"http://localhost:3000/api/v1/users/1/bookings","description":"<p>Posts a booking to the db</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","1","bookings"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"cf901e27-585b-4672-a48d-151870c3de34"},{"name":"Update a booking ","id":"bc5debb2-fc74-43f1-9258-f54a0925986a","request":{"method":"PUT","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[{"key":"booking[ABTANumber]","value":"AF341","type":"text"},{"key":"booking[token]","value":"ahsdjkasgjdasgdjhasgdhjagdhj","type":"text"},{"key":"booking[ArrivalDate]","value":"2018-03-15","type":"text"},{"key":"booking[Nights]","value":"2","type":"text"},{"key":"booking[RoomCode]","value":"GHJS12","type":"text"},{"key":"booking[Adults]","value":"2","type":"text"},{"key":"booking[Children]","value":"2","type":"text"},{"key":"booking[ParkingDays]","value":"2","type":"text"},{"key":"booking[Title]","value":"Mr Stanley ","type":"text"},{"key":"booking[Initial]","value":"SM","type":"text"},{"key":"bookiing[Surname]","value":"Morris","type":"text"},{"key":"boooking[Address]","value":"1 Harrisen Hill, Somewhere ","type":"text"},{"key":"booking[Town]","value":"Leatherhead","type":"text"},{"key":"booking[County]","value":"Surrey","type":"text"},{"key":"booking[PostCode]","value":"KT245HX","type":"text"},{"key":"booking[DayPhone]","value":"1","type":"text"},{"key":"booking[Email]","value":"test@test.com","type":"text"},{"key":"booking[CustomerRef]","value":"GSAHJ56","type":"text"},{"key":"booking[Remarks]","value":"Test the remarks field","type":"text"},{"key":"booking[Waiver]","value":"Not sure what this is for ","type":"text"},{"key":"booking[DataProtection]","value":"Bollocks","type":"text"},{"key":"booking[PriceCheckFlag]","value":"More bollocks ","type":"text"},{"key":"booking[PriceCheckPrice]","value":"1234.12","type":"text"},{"key":"booking[lang]","value":"English","type":"text"},{"key":"booking[SecondRoomType]","value":"Test Second Room","type":"text"},{"key":"booking[SecondRoomCode]","value":"ADS123","type":"text"},{"key":"booking[SecondRoomAdults]","value":"2","type":"text"},{"key":"booking[SecondRoomChildren]","value":"1","type":"text"},{"key":"booking[booking_type]","value":"Hotel ","type":"text"}]},"url":"http://localhost:3000/api/v1/users/1/bookings/1","description":"<p>Updates a booking </p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","1","bookings","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"bc5debb2-fc74-43f1-9258-f54a0925986a"},{"name":"Deletes a booking ","id":"c5134d76-f21f-40b4-88ec-abebc27dcc78","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:3000/api/v1/users/1/bookings/1","description":"<p>Deletes a booking </p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","1","bookings","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c5134d76-f21f-40b4-88ec-abebc27dcc78"}],"id":"ce692111-7070-4d6d-9c4a-bb95b985f9ae","description":"<p>Holds all the bookings from Holiday Extras </p>\n","_postman_id":"ce692111-7070-4d6d-9c4a-bb95b985f9ae","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}}},{"name":"Parkings","item":[{"name":"Get all parkings (only admins)","id":"0d76a691-6cf7-4489-8184-5b76ffbac587","request":{"method":"GET","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:3000/api/v1/users/1/parkings","description":"<p>You can use pagination on this endpoint supply :page and :per_page params. </p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","1","parkings"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"0d76a691-6cf7-4489-8184-5b76ffbac587"},{"name":"Get a single parking for given user","id":"f43b9c79-967b-483d-9ca8-1e93809bc381","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:3000/api/v1/users/1/parkings/1","description":"<ul>\n<li>Admins have access to all </li>\n<li>Members have access to own data</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","1","parkings","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"f43b9c79-967b-483d-9ca8-1e93809bc381"},{"name":"Post a parking to the database","id":"5e8ea353-91dd-43bb-a739-becf561e7366","request":{"method":"POST","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[{"key":"booking[ABTANumber]","value":"","type":"text"}]},"url":"http://localhost:3000/api/v1/users/1/parkings","description":"<p>Posts a new booking to the db</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","1","parkings"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5e8ea353-91dd-43bb-a739-becf561e7366"},{"name":"Update a booking ","id":"2ef9e856-c49e-4f5f-b8ff-da0dead56956","request":{"method":"PUT","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[{"key":"booking[ABTANumber]","value":"AF341","type":"text"},{"key":"booking[token]","value":"ahsdjkasgjdasgdjhasgdhjagdhj","type":"text"},{"key":"booking[ArrivalDate]","value":"2018-03-15","type":"text"},{"key":"booking[Nights]","value":"2","type":"text"},{"key":"booking[RoomCode]","value":"GHJS12","type":"text"},{"key":"booking[Adults]","value":"2","type":"text"},{"key":"booking[Children]","value":"2","type":"text"},{"key":"booking[ParkingDays]","value":"2","type":"text"},{"key":"booking[Title]","value":"Mr Stanley ","type":"text"},{"key":"booking[Initial]","value":"SM","type":"text"},{"key":"bookiing[Surname]","value":"Morris","type":"text"},{"key":"boooking[Address]","value":"1 Harrisen Hill, Somewhere ","type":"text"},{"key":"booking[Town]","value":"Leatherhead","type":"text"},{"key":"booking[County]","value":"Surrey","type":"text"},{"key":"booking[PostCode]","value":"KT245HX","type":"text"},{"key":"booking[DayPhone]","value":"1","type":"text"},{"key":"booking[Email]","value":"test@test.com","type":"text"},{"key":"booking[CustomerRef]","value":"GSAHJ56","type":"text"},{"key":"booking[Remarks]","value":"Test the remarks field","type":"text"},{"key":"booking[Waiver]","value":"Not sure what this is for ","type":"text"},{"key":"booking[DataProtection]","value":"Bollocks","type":"text"},{"key":"booking[PriceCheckFlag]","value":"More bollocks ","type":"text"},{"key":"booking[PriceCheckPrice]","value":"1234.12","type":"text"},{"key":"booking[lang]","value":"English","type":"text"},{"key":"booking[SecondRoomType]","value":"Test Second Room","type":"text"},{"key":"booking[SecondRoomCode]","value":"ADS123","type":"text"},{"key":"booking[SecondRoomAdults]","value":"2","type":"text"},{"key":"booking[SecondRoomChildren]","value":"1","type":"text"},{"key":"booking[booking_type]","value":"Hotel ","type":"text"}]},"url":"http://localhost:3000/api/v1/users/1/bookings/1","description":"<p>Updates a booking </p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","1","bookings","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"2ef9e856-c49e-4f5f-b8ff-da0dead56956"},{"name":"Deletes a booking ","id":"9b2cfd6e-edd6-4230-87e3-e26fab5d0dc8","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:3000/api/v1/users/1/bookings/1","description":"<p>Deletes a booking </p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","1","bookings","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9b2cfd6e-edd6-4230-87e3-e26fab5d0dc8"}],"id":"5a017827-e2e2-4479-b34d-c9b80ef8ec12","description":"<p>Holds all the bookings from Holiday Extras </p>\n","_postman_id":"5a017827-e2e2-4479-b34d-c9b80ef8ec12","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}}},{"name":"Trips ","item":[{"name":"Get all trips","id":"8ced2ac9-63eb-44a4-bba5-c901377f2915","request":{"method":"GET","header":[{"key":"Authorization","value":"Token eFzH4RhfLDmsgFJkDWPPpmpY"}],"url":"http://localhost:3000/api/v1/users/2/trips?page=1&per_page=10","description":"<p>Gets all the Trips for a user </p>\n<ul>\n<li>member can only see own data </li>\n<li>admin can see for all users</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","2","trips"],"host":["localhost"],"query":[{"key":"page","value":"1"},{"key":"per_page","value":"10"}],"variable":[]}},"response":[],"_postman_id":"8ced2ac9-63eb-44a4-bba5-c901377f2915"},{"name":"Get a specific Trip for a given user","id":"29de0f03-5232-4f93-8194-621dc4f1d0f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"url":"http://localhost:3000/api/v1/users/2/trips/1","description":"<p>Gets specific trip </p>\n<ul>\n<li>member can only see own data </li>\n<li>admin can see for all users</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","2","trips","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"29de0f03-5232-4f93-8194-621dc4f1d0f5"},{"name":"Post a Trip to the DB ","id":"33e77212-2615-4ba3-945e-7602c959001c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NzcyMjk0NjQsImlzcyI6InRyaXBzdG9yZSIsImF1ZCI6ImNsaWVudCIsInVzZXJfaWQiOjJ9.SFmr-3Rx0KgpDhtnAzI8kw9OY544hiqPhgV_hn4kwc4"}],"body":{"mode":"formdata","formdata":[{"key":"trip[start_date]","value":"2018-08-17 ","type":"text"},{"key":"trip[end_date]","value":"2018-08-31","type":"text"},{"key":"trip[name]","value":"My Family Holiday","type":"text"},{"key":"trip[published]","value":"true","type":"text","disabled":true},{"key":"trip[departure_time]","value":"14:54:55","type":"text","disabled":true},{"key":"trip[arrival_time]","value":"14:54:55","type":"text","disabled":true},{"key":"accommodation[name]","value":"St Ives Hotel","type":"text","disabled":true},{"key":"accommodation[accommodation_type]","value":"hotel","type":"text","disabled":true},{"key":"place[name]","value":"Test ","type":"text","disabled":true},{"key":"journey[title]","value":"Travel to Tenrife","type":"text","disabled":true},{"key":"transport[name]","value":"Flight to Tenerife","type":"text","disabled":true},{"key":"transport[transport_type]","value":"airplane","type":"text","disabled":true},{"key":"file","type":"file","src":"/Users/admin/Downloads/adam-niescioruk-M-wWRuiX7xU-unsplash.jpg","disabled":true},{"key":"image[alt_text]","value":"test","type":"text","disabled":true},{"key":"destination[title]","value":"Vienna","type":"text","disabled":true},{"key":"journey[title]","value":"Traveling to Tenerife","type":"text","disabled":true},{"key":"transport[name]","value":"Taxi to Airport","type":"text","disabled":true},{"key":"transport[transport_type]","value":"taxi","type":"text","disabled":true},{"key":"accommodation[name]","value":"Hotel St Ives","type":"text","disabled":true},{"key":"accommodation[accommodation_type]","value":"hotel","type":"text","disabled":true}]},"url":"http://localhost:3000/api/v1/users/5/trips","description":"<p>Any user can create Trips </p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","5","trips"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"33e77212-2615-4ba3-945e-7602c959001c"},{"name":"Update a specific Trip ","id":"05855373-d82d-4501-8499-d54666d22a22","request":{"method":"PUT","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[{"key":"trip[start_date]","value":"2018-08-17 14:54:55.966597","type":"text"},{"key":"trip[end_date]","value":"2018-08-17 14:54:55.966597","type":"text"},{"key":"trip[destination]","value":"Rome ","type":"text"},{"key":"trip[user_id]","value":"1","type":"text"},{"key":"trip[departure_airport_code]","value":"GH4564YU","type":"text"},{"key":"trip[arrival_airport_code]","value":"GHJ67YUB","type":"text"},{"key":"trip[departure_time]","value":"2018-08-17 14:54:55.966597","type":"text"},{"key":"trip[arrival_time]","value":"2018-08-17 14:54:55.966597","type":"text"}]},"url":"http://localhost:3000/api/v1/users/1/trips/1","description":"<p>Update a specific Trip </p>\n<ul>\n<li>Admin can update any </li>\n<li>Member can only update own data</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","1","trips","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"05855373-d82d-4501-8499-d54666d22a22"},{"name":"Delete a trip ","id":"da311e41-2a45-42d7-a164-c9ee80b8b203","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:3000/api/v1/users/1/trips/1","description":"<p>Delete a trip by ID </p>\n<ul>\n<li>Members can only update own data </li>\n<li>Admins can delete any trip</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","1","trips","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"da311e41-2a45-42d7-a164-c9ee80b8b203"}],"id":"aea489e2-41db-4344-948c-2bd069fa727b","description":"<p>Contains all the TRIP routes</p>\n","_postman_id":"aea489e2-41db-4344-948c-2bd069fa727b","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}}},{"name":"Todos","item":[{"name":"Get all todos for a a trip ","id":"8e3c8e09-544c-4488-94a3-59bb4f131074","request":{"method":"GET","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:3000/api/v1/users/1/trips/1/todos?page=1&per_page=10","description":"<p>Gets all the Todos for a trip  </p>\n<ul>\n<li>member can only see own data </li>\n<li>admin can see for all users</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","1","trips","1","todos"],"host":["localhost"],"query":[{"key":"page","value":"1"},{"key":"per_page","value":"10"}],"variable":[]}},"response":[],"_postman_id":"8e3c8e09-544c-4488-94a3-59bb4f131074"},{"name":"Get a specific Todo for a given Trip","id":"9d8ab47a-2bda-4173-9921-e09bdeea9260","request":{"method":"GET","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:3000/api/v1/users/1/trips/1/todos/1","description":"<p>Gets specific Todo </p>\n<ul>\n<li>member can only see own data </li>\n<li>admin can see for all users</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","1","trips","1","todos","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9d8ab47a-2bda-4173-9921-e09bdeea9260"},{"name":"Post a Todo to the DB ","id":"8968eb25-e0fd-46c1-b41c-ff8baaed253c","request":{"method":"POST","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[{"key":"todo[title]","value":"Test Title ","type":"text"},{"key":"todo[description]","value":"Test description ","type":"text"}]},"url":"http://localhost:3000/api/v1/users/1/trips/1/todos","description":"<p>Any user can create Todos</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","1","trips","1","todos"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"8968eb25-e0fd-46c1-b41c-ff8baaed253c"},{"name":"Update a destination","id":"91be6d70-4b20-4925-961c-bde26120527c","request":{"method":"PUT","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[{"key":"todo[title]","value":"Test Title 2","type":"text"},{"key":"todo[description]","value":"Test description ","type":"text"},{"key":"todo[trip_id","value":"1","type":"text"}]},"url":"http://localhost:3000/api/v1/users/1/trips/1/todos/1","description":"<ul>\n<li>Admin can update any </li>\n<li>member can update own data</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","1","trips","1","todos","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"91be6d70-4b20-4925-961c-bde26120527c"},{"name":"Delete a Todo","id":"e5426f49-70e4-46af-a10b-338812de093b","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:3000/api/v1/users/1/trips/1/todos/1","description":"<ul>\n<li>Admin can delete any</li>\n<li>member can delete own data</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","1","trips","1","todos","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e5426f49-70e4-46af-a10b-338812de093b"}],"id":"17bb2c55-26d9-4ad3-8977-8e9f7c7be3f3","_postman_id":"17bb2c55-26d9-4ad3-8977-8e9f7c7be3f3","description":"","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}}},{"name":"Destinations","item":[{"name":"Get all destinations for a trip","id":"1a86aa2b-584b-4c92-aff7-91b98bca54cf","request":{"method":"POST","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[{"key":"image[alt_text]","value":"Test","type":"text"},{"key":"file","type":"file","src":"/Users/admin/Documents/Backgrounds/0dnzdfc8bic11.jpg"}]},"url":"http://localhost:3000/api/v1/users/2/trips/1/destinations/1/images","description":"<p>Gets all the destinations for a trip </p>\n<ul>\n<li>member can only see own data </li>\n<li>admin can see for all users</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","2","trips","1","destinations","1","images"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"1a86aa2b-584b-4c92-aff7-91b98bca54cf"},{"name":"Get a single destination by ID","id":"7ce29c24-52a2-4874-affe-4e2f3b2e1806","request":{"method":"GET","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:3000/api/v1/users/1/trips/1/destinations/1","description":"<p>Gets a single destination</p>\n<ul>\n<li>member can only see own data </li>\n<li>admin can see for all users</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","1","trips","1","destinations","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7ce29c24-52a2-4874-affe-4e2f3b2e1806"},{"name":"Post a destination","id":"b7cf696e-d682-4871-ad62-6ba5dbad7fb0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Token pFd2LcDZ6uxC55rWrfPnuTpt"}],"body":{"mode":"formdata","formdata":[{"key":"destination[title]","value":"Sandton Johannesburg","type":"text"},{"key":"destination[description]","value":"Some description ","type":"text"},{"key":"destination[formatted_address]","value":"Some formatted address ","type":"text"},{"key":"destination[lat]","value":"","type":"text"},{"key":"destination[lng]","value":"","type":"text"},{"key":"destination[website]","value":"","type":"text"},{"key":"destination[rating]","value":"","type":"text"},{"key":"destination[country]","value":"","type":"text"},{"key":"destination[city]","value":"","type":"text"}]},"url":"http://localhost:3000/api/v1/all-trips?page=1&per_page=10&tags=beach holiday&tags=camping trite","description":"<p>Post  the destinations to the db </p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","all-trips"],"host":["localhost"],"query":[{"key":"page","value":"1"},{"key":"per_page","value":"10"},{"key":"tags","value":"beach holiday"},{"disabled":true,"key":"published","value":"true"},{"key":"tags","value":"camping trite"}],"variable":[]}},"response":[],"_postman_id":"b7cf696e-d682-4871-ad62-6ba5dbad7fb0"},{"name":"Update a destination","id":"de91443b-a8ec-4e93-ab93-b7def4bc09e7","request":{"method":"PUT","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[{"key":"destination[title]","value":"Sandton Johannesburg","type":"text"},{"key":"destination[description]","value":"Test description","type":"text"},{"key":"destination[formatted_address]","value":"Johannesburg, South Africa","type":"text"},{"key":"destination[lat]","value":"-26.2041028","type":"text"},{"key":"destination[lng]","value":"28.0473051","type":"text"},{"key":"destination[post_code]","value":"","type":"text"},{"key":"destination[city]","value":"Johannesburg","type":"text"},{"key":"destination[country]","value":"South Africa","type":"text"},{"key":"destination[rating]","value":"3","type":"text"},{"key":"destination[website]","value":"http://somesite.com","type":"text"}]},"url":"http://localhost:3000/api/v1/users/1/trips/1/destinations/3","description":"<ul>\n<li>Admin can update any </li>\n<li>member can update own data</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","1","trips","1","destinations","3"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"de91443b-a8ec-4e93-ab93-b7def4bc09e7"},{"name":"Delete a destination","id":"2b16b212-cc94-4224-b635-293b61bfe0f1","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:3000/api/v1/users/1/trips/1/destinations/1","description":"<ul>\n<li>Admin can delete any </li>\n<li>member can delete own data</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","1","trips","1","destinations","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"2b16b212-cc94-4224-b635-293b61bfe0f1"}],"id":"b3b55278-d850-4b29-8880-4515d0663111","description":"<p>Holds all the destination routes </p>\n","_postman_id":"b3b55278-d850-4b29-8880-4515d0663111","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}}},{"name":"Airports","item":[{"name":"Get all airports","id":"3fccf87c-2f9e-4f01-9aad-5f258a8e919a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[{"key":"airport[trip_type]","value":"arrival","type":"text"},{"key":"airport[name]","value":"JHB International ","type":"text"},{"key":"airport[code]","value":"JHB101","type":"text"}]},"url":"http://localhost:3000/api/v1/users/2/trips/2/destinations/1/airports?page=1&per_page=10","description":"<p>Gets all the airports for a given destination</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","2","trips","2","destinations","1","airports"],"host":["localhost"],"query":[{"key":"page","value":"1"},{"key":"per_page","value":"10"}],"variable":[]}},"response":[],"_postman_id":"3fccf87c-2f9e-4f01-9aad-5f258a8e919a"},{"name":"Post a Airport","id":"5509aee6-9f44-4d55-b7a3-9b7bc22e748e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{ADMIN_TOKEN}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"airport[trip_type]","value":"departure","type":"text"},{"key":"airport[name]","value":"JHB International ","type":"text"},{"key":"airport[code]","value":"JHB102","type":"text"},{"key":"","value":"","type":"text","disabled":true}]},"url":"http://localhost:3000/api/v1/users/2/trips/2/destinations/1/airports","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","2","trips","2","destinations","1","airports"],"host":["localhost"],"query":[{"disabled":true,"key":"page","value":"1"},{"disabled":true,"key":"per_page","value":"10"}],"variable":[]}},"response":[],"_postman_id":"5509aee6-9f44-4d55-b7a3-9b7bc22e748e"}],"id":"30e64b66-29bf-4ba2-8d29-3bca6b98248d","_postman_id":"30e64b66-29bf-4ba2-8d29-3bca6b98248d","description":"","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}}},{"name":"Info","item":[{"name":"Get Info for  a single destination ","id":"b684ed17-11ca-490f-9797-092a6f9399dd","request":{"method":"GET","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:3000/api/v1/users/1/trips/1/destinations/3/info","description":"<p>Gets the info for a single detination. </p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","1","trips","1","destinations","3","info"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b684ed17-11ca-490f-9797-092a6f9399dd"}],"id":"6e63e78d-f60f-4013-8864-b2ab4e81a2db","description":"<p>Holds the info route </p>\n","_postman_id":"6e63e78d-f60f-4013-8864-b2ab4e81a2db","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}}},{"name":"Autocomplete","item":[{"name":"Get Info for  a single destination ","id":"31826358-b125-4a38-b4e6-8de180fa2233","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Token sbCXMvuTweGoWpGptnSjKb9w"}],"body":{"mode":"formdata","formdata":[{"key":"query","value":"The Kings Head Guildford","type":"text"}]},"url":"http://localhost:3000/api/v1/autocomplete","description":"<p>Gets the info for a single detination. </p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","autocomplete"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"31826358-b125-4a38-b4e6-8de180fa2233"}],"id":"ceb77c13-b845-417b-b049-9b75d9ccfbfd","description":"<p>Holds the info route </p>\n","_postman_id":"ceb77c13-b845-417b-b049-9b75d9ccfbfd","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}}},{"name":"Places","item":[{"name":"Get places (by lng and lat)","id":"6e28072b-0484-4652-be7c-65e7685a5ec2","request":{"method":"GET","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:3000/api/v1/users/1/trips/1/destinations/1/places?lat=-26.2041028&lng=28.0473051","description":"<p>Get places with longitude and latitude. </p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","1","trips","1","destinations","1","places"],"host":["localhost"],"query":[{"key":"lat","value":"-26.2041028"},{"key":"lng","value":"28.0473051"}],"variable":[]}},"response":[],"_postman_id":"6e28072b-0484-4652-be7c-65e7685a5ec2"}],"id":"7484ee53-2191-4be5-9711-24078f972e99","_postman_id":"7484ee53-2191-4be5-9711-24078f972e99","description":"","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}}},{"name":"Museums","item":[{"name":"Get museums for given trip","id":"008a7b32-67e3-49e7-88af-637ba89778ed","request":{"method":"GET","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:3000/api/v1/users/2/trips/2/destinations/4/museums","description":"<p>Get places based on params </p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","2","trips","2","destinations","4","museums"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"008a7b32-67e3-49e7-88af-637ba89778ed"}],"id":"d75ceb93-86b7-416a-a7d9-4e7229edaf42","description":"<p>Plugin for the Google Places API, gets all the nearby places for the given destination. </p>\n","event":[{"listen":"prerequest","script":{"id":"39f0dbac-fb53-42b5-9921-1c66656eff7f","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"84b4b184-946a-448b-9e5c-d33ff544775f","type":"text/javascript","exec":[""]}}],"_postman_id":"d75ceb93-86b7-416a-a7d9-4e7229edaf42","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}}},{"name":"Bars","item":[{"name":"Get bars for given destination","id":"f2b4f96f-ad26-4317-9ff1-d73d0147e871","request":{"method":"GET","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:3000/api/v1/users/2/trips/2/destinations/4/bars","description":"<p>Get bars</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","2","trips","2","destinations","4","bars"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"f2b4f96f-ad26-4317-9ff1-d73d0147e871"}],"id":"61f1bf10-f693-486d-bb1c-cbef18d6658e","description":"<p>Hold the Google API Routes for Bars </p>\n","_postman_id":"61f1bf10-f693-486d-bb1c-cbef18d6658e","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}}},{"name":"Restaurants","item":[{"name":"Get restaurants for given destination","id":"c2e0e252-dd30-4bb9-8a85-8e1d020963e8","request":{"method":"GET","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:3000/api/v1/users/1/trips/1/destinations/1/restaurants","description":"<p>Get restaurants</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","1","trips","1","destinations","1","restaurants"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c2e0e252-dd30-4bb9-8a85-8e1d020963e8"}],"id":"931cc806-f96a-4fff-9063-39642cede8b5","description":"<p>Get restaurants based on destination from Google API</p>\n","_postman_id":"931cc806-f96a-4fff-9063-39642cede8b5","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}}},{"name":"Parks ","item":[{"name":"Get parks for given destination","id":"be6254a8-22c2-4cc2-b1d3-ed2bd64d05dd","request":{"method":"GET","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:3000/api/v1/users/1/trips/1/destinations/1/parks","description":"<p>Get parks </p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","1","trips","1","destinations","1","parks"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"be6254a8-22c2-4cc2-b1d3-ed2bd64d05dd"}],"id":"ce6c1616-164c-4258-b332-73fbeedd093f","description":"<p>Holds all the parks data from Google Places API</p>\n","_postman_id":"ce6c1616-164c-4258-b332-73fbeedd093f","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}}},{"name":"Clubs","item":[{"name":"Get clubs for a given destination","id":"5f2de56b-483b-48a9-b311-938db2a76d2e","request":{"method":"GET","header":[{"key":"Authorization","value":"Token {{ADMIN_TOKEN}}"}],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:3000/api/v1/users/2/trips/2/destinations/4/clubs","description":"<p>Get clubs </p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","2","trips","2","destinations","4","clubs"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5f2de56b-483b-48a9-b311-938db2a76d2e"}],"id":"031dea3f-2ea6-4ee1-9ec2-57bd231424b3","_postman_id":"031dea3f-2ea6-4ee1-9ec2-57bd231424b3","description":"","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}}},{"name":"Availability","item":[{"name":"http://localhost:3000/api/v1/availability?location_code=LHR&arrival_date=2018-11-12&nights=1&room_type=F13&language_code=en&type=hotel","id":"8c5ac98e-1930-41f6-b6e7-333668393834","request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/availability?location_code=LHR&arrival_date=2018-11-12&nights=1&room_type=F13&language_code=en&type=hotel","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","availability"],"host":["localhost"],"query":[{"key":"location_code","value":"LHR"},{"key":"arrival_date","value":"2018-11-12"},{"key":"nights","value":"1"},{"key":"room_type","value":"F13"},{"key":"language_code","value":"en"},{"key":"type","value":"hotel"}],"variable":[]}},"response":[],"_postman_id":"8c5ac98e-1930-41f6-b6e7-333668393834"}],"id":"940a9ea3-ef7a-4ac8-9c37-67b914c15693","description":"<p>Holds routes to get hotel availability </p>\n","_postman_id":"940a9ea3-ef7a-4ac8-9c37-67b914c15693","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}}},{"name":"Trip Images","item":[{"name":"Get all images for a trip","id":"4c4fd682-6fa6-44b8-b47b-721bfb77cc83","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eFzH4RhfLDmsgFJkDWPPpmpY","type":"text"}],"url":"http://localhost:3000/api/v1/users/2/trips/1/trip-images","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","2","trips","1","trip-images"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"4c4fd682-6fa6-44b8-b47b-721bfb77cc83"},{"name":"Post a trip image","id":"7f2469a6-c854-47e5-b301-b6ad176e9938","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer 9mqJ9yV6aya6ySbdydcYaidQ","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"image[alt_text]","value":"Test","type":"text"},{"key":"image[url]","value":"test.test.com","type":"text"},{"key":"image[file]","value":"","type":"text","disabled":true},{"key":"file","type":"file","src":"/Users/admin/Documents/Backgrounds/0dnzdfc8bic11.jpg"}]},"url":"http://localhost:3000/api/v1/users/2/trips/1/destinations/1/events/1/event-images","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","2","trips","1","destinations","1","events","1","event-images"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7f2469a6-c854-47e5-b301-b6ad176e9938"}],"id":"57c4c62f-51bb-42b8-91a3-3540ff6d7d5e","_postman_id":"57c4c62f-51bb-42b8-91a3-3540ff6d7d5e","description":"","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}}},{"name":"Events","item":[{"name":"Post an event","id":"4c8a7173-a149-4772-8348-efbf1730ed04","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer DdBuUh4KETTTRBMbW3bZD46t","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"event[name]","value":"Test","type":"text"},{"key":"event[event_type]","value":"test","type":"text"}]},"url":"http://localhost:3000/api/v1/users/2/trips/1/destinations/1/events","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","2","trips","1","destinations","1","events"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"4c8a7173-a149-4772-8348-efbf1730ed04"}],"id":"9e5d969d-5c20-4838-8d5d-8317e838b732","_postman_id":"9e5d969d-5c20-4838-8d5d-8317e838b732","description":"","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}}},{"name":"Details","item":[{"name":"Get details for a place","id":"1c2de439-cfea-4f88-bb28-82e7777d8bbc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"1c2de439-cfea-4f88-bb28-82e7777d8bbc"}],"id":"7d1aca93-a4a1-4e56-b477-9eae6e927df5","_postman_id":"7d1aca93-a4a1-4e56-b477-9eae6e927df5","description":"","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}}},{"name":"Places","item":[{"name":"Get all places","id":"c0b4633d-966b-469f-86d0-797e5bb742e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"c0b4633d-966b-469f-86d0-797e5bb742e2"},{"name":"Post a place","id":"2ce81658-72f6-4a15-98ff-7fe071448255","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"2ce81658-72f6-4a15-98ff-7fe071448255"}],"id":"4719729f-c9bc-4acb-8626-aa49fd119f74","_postman_id":"4719729f-c9bc-4acb-8626-aa49fd119f74","description":"","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","id":"12f5aa65-9dd8-4b1f-a40d-ee8f7a3cf808","name":"Tripstore API ","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"token":"<token>"}},"event":[{"listen":"prerequest","script":{"id":"bbe11363-731e-4b41-8068-6be2d4869983","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"e321d7dd-8bb0-46d0-8ad4-da92827fbb6e","type":"text/javascript","exec":[""]}}],"variable":[{"key":"API_URL","value":"http://localhost:3000","type":"string"}]}