{"info":{"_postman_id":"3506d762-f105-4292-8eae-6363704180ea","name":"Bike Rental Server","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"29777357","collectionId":"3506d762-f105-4292-8eae-6363704180ea","publishedId":"2sAXqv61cp","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-09-24T10:57:24.000Z"},"item":[{"name":"Auth","item":[{"name":"Sign Up","id":"c724604b-981b-43bd-9fc4-75b4d09662bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Towhidul Islam Rasel\",\r\n    \"email\": \"rasel@email.com\",\r\n    \"password\": \"Rasel123\",\r\n    \"phone\": \"1234567890\",\r\n    \"address\": \"123 Main St, Anytown\",\r\n    \"role\" : \"admin\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/signup","urlObject":{"path":["auth","signup"],"host":["http://localhost:5000/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"c724604b-981b-43bd-9fc4-75b4d09662bc"},{"name":"Login","id":"b23f5335-a350-4a09-b34a-358292f734bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"rasel@email.com\",\r\n    \"password\": \"Rasel123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/login","urlObject":{"path":["auth","login"],"host":["http://localhost:5000/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"b23f5335-a350-4a09-b34a-358292f734bf"}],"id":"9055689a-abec-42c8-9747-9fa994878826","_postman_id":"9055689a-abec-42c8-9747-9fa994878826","description":""},{"name":"User","item":[{"name":"Get Profile","id":"e1cadd4e-cade-4004-a071-5218db26f72a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NmU3NDUxNDFlZDRhOGE3OGMzMDczODIiLCJuYW1lIjoiVG93aGlkdWwgSXNsYW0gUmFzZWwiLCJlbWFpbCI6InJhc2VsQGVtYWlsLmNvbSIsInJvbGUiOiJhZG1pbiIsImlhdCI6MTcyNjc2NTU3MSwiZXhwIjoxNzI3NjI5NTcxfQ.ejYa5z0v6OG54NIAGVC1dSIkNl7Gb3bSSOwnTCHB9Y4"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000/api/users/me","urlObject":{"path":["users","me"],"host":["http://localhost:5000/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"e1cadd4e-cade-4004-a071-5218db26f72a"},{"name":"Update Profile","id":"22a08c88-f6cc-4ab7-8455-5f11a111375c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NmU3NDUxNDFlZDRhOGE3OGMzMDczODIiLCJuYW1lIjoiVG93aGlkdWwgSXNsYW0gUmFzZWwiLCJlbWFpbCI6InJhc2VsQGVtYWlsLmNvbSIsInJvbGUiOiJhZG1pbiIsImlhdCI6MTcyNjc2NTU3MSwiZXhwIjoxNzI3NjI5NTcxfQ.ejYa5z0v6OG54NIAGVC1dSIkNl7Gb3bSSOwnTCHB9Y4"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"John Updated\",\r\n    \"phone\": \"0987654321\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/users/me","urlObject":{"path":["users","me"],"host":["http://localhost:5000/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"22a08c88-f6cc-4ab7-8455-5f11a111375c"},{"name":"Make Admin","id":"b012c615-ae66-4335-ba05-480c67da56ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"PUT","header":[],"url":"/:id","urlObject":{"path":[":id"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[],"_postman_id":"b012c615-ae66-4335-ba05-480c67da56ac"},{"name":"Delete User","id":"ac28c9f3-6842-46b0-90a2-68f9daae69c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"DELETE","header":[],"url":"/:id","urlObject":{"path":[":id"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[],"_postman_id":"ac28c9f3-6842-46b0-90a2-68f9daae69c3"}],"id":"1c6bf4fc-ba48-40c1-81b6-b5c7da7ea2df","_postman_id":"1c6bf4fc-ba48-40c1-81b6-b5c7da7ea2df","description":""},{"name":"Bike","item":[{"name":"Create Bike","id":"14c93df1-f425-4a72-ab1b-a939f28cecab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Yamaha MT 15 V2\",\r\n    \"description\": \"The Yamaha MT15 V2 is an entry-level naked streetfighter based on the Yamaha R15. Its performance is suitable for beginners as well as experienced riders. It’s oriented more towards daily riding as well occasional weekend rides. With its more upright riding posture, it offers more practicality as compared to the R15.\",\r\n    \"image\": \"https://bd.gaadicdn.com/processedimages/yamaha/mt-15-2-0/494X300/mt-15-2-06613f8354e5d9.jpg?imwidth=400&impolicy=resize\",\r\n    \"pricePerHour\": 15,\r\n    \"cc\": 155,\r\n    \"year\": 2023,\r\n    \"model\": \"MT 15 V2\",\r\n    \"brand\": \"Yamaha\",\r\n    \"isAvailable\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/bikes","urlObject":{"path":["bikes"],"host":["http://localhost:5000/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"14c93df1-f425-4a72-ab1b-a939f28cecab"},{"name":"Get All Bikes","id":"134c0156-a0c5-4dfc-a1b2-191ec248bd90","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000/api/bikes","urlObject":{"path":["bikes"],"host":["http://localhost:5000/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"134c0156-a0c5-4dfc-a1b2-191ec248bd90"},{"name":"Get Bike By ID","id":"31f89122-1aa4-40c0-a91c-2045d9d20d41","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000/api/bikes/:id","urlObject":{"path":["bikes",":id"],"host":["http://localhost:5000/api"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[],"_postman_id":"31f89122-1aa4-40c0-a91c-2045d9d20d41"},{"name":"Update Bike","id":"e6565829-8c03-47d9-b0ea-488f5da6a2a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"pricePerHour\": 20\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/bikes/66743da54f5e8c2a2f487fe2","urlObject":{"path":["bikes","66743da54f5e8c2a2f487fe2"],"host":["http://localhost:5000/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"e6565829-8c03-47d9-b0ea-488f5da6a2a7"},{"name":"Delete Bike","id":"5b246f6f-538f-4944-b355-5775b06d12e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:5000/api/bikes/66743da54f5e8c2a2f487fe2","urlObject":{"path":["bikes","66743da54f5e8c2a2f487fe2"],"host":["http://localhost:5000/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"5b246f6f-538f-4944-b355-5775b06d12e6"}],"id":"3bc61bc1-08fc-4bd5-8e05-76aa6c9e0848","_postman_id":"3bc61bc1-08fc-4bd5-8e05-76aa6c9e0848","description":""},{"name":"Booking","item":[{"name":"Create Booking With Advance Payment","id":"6967d3af-4b95-4cc4-88fa-f8ce9404cfb6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NmU3NDUxNDFlZDRhOGE3OGMzMDczODIiLCJuYW1lIjoiVG93aGlkdWwgSXNsYW0gUmFzZWwiLCJlbWFpbCI6InJhc2VsQGVtYWlsLmNvbSIsInJvbGUiOiJhZG1pbiIsImlhdCI6MTcyNjc2NTU3MSwiZXhwIjoxNzI3NjI5NTcxfQ.ejYa5z0v6OG54NIAGVC1dSIkNl7Gb3bSSOwnTCHB9Y4"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"bikeId\": \"id\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/rentals/create-booking","urlObject":{"path":["rentals","create-booking"],"host":["http://localhost:5000/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"6967d3af-4b95-4cc4-88fa-f8ce9404cfb6"},{"name":"Update Booking With Payment","id":"c685a442-b09f-4244-9bf3-134b3aa98330","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NmU3NDUxNDFlZDRhOGE3OGMzMDczODIiLCJuYW1lIjoiVG93aGlkdWwgSXNsYW0gUmFzZWwiLCJlbWFpbCI6InJhc2VsQGVtYWlsLmNvbSIsInJvbGUiOiJhZG1pbiIsImlhdCI6MTcyNjc2NTU3MSwiZXhwIjoxNzI3NjI5NTcxfQ.ejYa5z0v6OG54NIAGVC1dSIkNl7Gb3bSSOwnTCHB9Y4"}]},"isInherited":false},"method":"POST","header":[],"url":"http://localhost:5000/api/rentals/:bookingId","urlObject":{"path":["rentals",":bookingId"],"host":["http://localhost:5000/api"],"query":[],"variable":[{"type":"any","value":"","key":"bookingId"}]}},"response":[],"_postman_id":"c685a442-b09f-4244-9bf3-134b3aa98330"},{"name":"Create Rental","id":"0027bf38-0c50-47d9-a3cc-855d180f104d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"bikeId\": \"66743da44f5e8c2a2f487fdf\",\r\n    \"startTime\": \"2024-06-10T09:00:00Z\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/rentals","urlObject":{"path":["rentals"],"host":["http://localhost:5000/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"0027bf38-0c50-47d9-a3cc-855d180f104d"},{"name":"Return Bike","id":"c484ba67-4ac0-4bb7-92f0-c1e9a323a4ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NmU3NDUxNDFlZDRhOGE3OGMzMDczODIiLCJuYW1lIjoiVG93aGlkdWwgSXNsYW0gUmFzZWwiLCJlbWFpbCI6InJhc2VsQGVtYWlsLmNvbSIsInJvbGUiOiJhZG1pbiIsImlhdCI6MTcyNjc2NTU3MSwiZXhwIjoxNzI3NjI5NTcxfQ.ejYa5z0v6OG54NIAGVC1dSIkNl7Gb3bSSOwnTCHB9Y4"}]},"isInherited":false},"method":"PUT","header":[],"url":"http://localhost:5000/api/rentals/66ec73cadc286fcbb0afac8c/return","urlObject":{"path":["rentals","66ec73cadc286fcbb0afac8c","return"],"host":["http://localhost:5000/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"c484ba67-4ac0-4bb7-92f0-c1e9a323a4ed"},{"name":"Get Single User All Rentals","id":"63195771-e3b3-4920-a06c-0c79aa7a5007","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NmU3NDUxNDFlZDRhOGE3OGMzMDczODIiLCJuYW1lIjoiVG93aGlkdWwgSXNsYW0gUmFzZWwiLCJlbWFpbCI6InJhc2VsQGVtYWlsLmNvbSIsInJvbGUiOiJhZG1pbiIsImlhdCI6MTcyNjc2NTU3MSwiZXhwIjoxNzI3NjI5NTcxfQ.ejYa5z0v6OG54NIAGVC1dSIkNl7Gb3bSSOwnTCHB9Y4"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000/api/rentals?status=unpaid","urlObject":{"path":["rentals"],"host":["http://localhost:5000/api"],"query":[{"key":"status","value":"unpaid"}],"variable":[]}},"response":[],"_postman_id":"63195771-e3b3-4920-a06c-0c79aa7a5007"},{"name":"Get All User Rentals","id":"99f824c6-9036-481e-8530-9ab3990c7b05","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000/api/rentals/get-all-user-rentals","urlObject":{"path":["rentals","get-all-user-rentals"],"host":["http://localhost:5000/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"99f824c6-9036-481e-8530-9ab3990c7b05"}],"id":"f92968fe-a30c-4f63-b6f6-81bad87cfc1d","_postman_id":"f92968fe-a30c-4f63-b6f6-81bad87cfc1d","description":""},{"name":"Hello","id":"c288264b-7bd3-47db-b17a-087e8b9d7609","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000","urlObject":{"protocol":"http","port":"5000","host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c288264b-7bd3-47db-b17a-087e8b9d7609"}],"event":[{"listen":"prerequest","script":{"id":"9fe52f6a-9b54-4f3e-8025-645abf0612d8","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"17f04bea-595e-4667-812f-822afb286511","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"BASE_URL","value":"http://localhost:5000/api","type":"string"},{"key":"TOKEN","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NmU3NDUxNDFlZDRhOGE3OGMzMDczODIiLCJuYW1lIjoiVG93aGlkdWwgSXNsYW0gUmFzZWwiLCJlbWFpbCI6InJhc2VsQGVtYWlsLmNvbSIsInJvbGUiOiJhZG1pbiIsImlhdCI6MTcyNjc2NTU3MSwiZXhwIjoxNzI3NjI5NTcxfQ.ejYa5z0v6OG54NIAGVC1dSIkNl7Gb3bSSOwnTCHB9Y4","type":"string"},{"key":"ADMIN_TOKEN","value":"","type":"string"}]}