{"info":{"_postman_id":"e61c0688-87b7-4249-a186-0921cd753027","name":"Ticket_Management","description":"<html><head></head><body><p>StartFragment</p>\n<p>The <strong>Ticket Management System</strong> is a backend system designed for managing bus tickets, allowing users to purchase tickets for specific buses at designated time slots. The system includes authentication, role-based management (Admin and User), and ticket purchasing functionalities.</p>\n<p>This system is built using <strong>Node.js</strong>, <strong>Express.js</strong>, and <strong>MongoDB</strong> with <strong>Mongoose</strong> for the database. The project follows a modular design pattern to ensure scalability and maintainability.</p>\n<p>EndFragment</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"29092897","collectionId":"e61c0688-87b7-4249-a186-0921cd753027","publishedId":"2sAYBXBWYj","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-11-28T16:13:08.000Z"},"item":[{"name":"Auth API","item":[{"name":"USER REGISTER","id":"f3f5c74c-0aa9-4283-87aa-9908640c3049","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"minhazul","type":"text"},{"key":"email","value":"minhazul@gmail.com","type":"text"},{"key":"password","value":"iamsujon","type":"text"},{"key":"role","value":"admin","type":"text"}]},"url":"http://localhost:3000/auth/register","description":"<p>User can create a account.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["auth","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"f3f5c74c-0aa9-4283-87aa-9908640c3049"},{"name":"USER LOGIN","id":"474b3cd0-cfac-4871-8eb2-952146739180","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"sheikh","type":"text","disabled":true},{"key":"email","value":"sheikh@gmail.com","type":"text"},{"key":"password","value":"iamsujon","type":"text"},{"key":"role","value":"user","type":"text","disabled":true}]},"url":"http://localhost:3000/auth/login","description":"<p>User can login after successfully register.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["auth","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"474b3cd0-cfac-4871-8eb2-952146739180"},{"name":"LOGOUT","id":"46684fe1-3406-4036-8c49-a669b570e832","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"sheikh","type":"text","disabled":true},{"key":"email","value":"sujon@gmail.com","type":"text"},{"key":"password","value":"iamsujon","type":"text"},{"key":"role","value":"user","type":"text","disabled":true}]},"url":"http://localhost:3000/auth/logout","description":"<p>User can logout. But before login. When user login automatic create a token and store that token in the cookie, name of the cookie authToke.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["auth","logout"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"46684fe1-3406-4036-8c49-a669b570e832"}],"id":"992fc73e-6dae-45d5-936a-86441a7f74c3","_postman_id":"992fc73e-6dae-45d5-936a-86441a7f74c3","description":""},{"name":"Admin API","item":[{"name":"ADD BUS","id":"83784635-4960-414a-a251-c1baf0e5f246","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Deshsssssssssssssss","type":"text"},{"key":"route","value":"Dhaka to Magura","type":"text"},{"key":"capacity","value":"45","type":"text"}]},"url":"http://localhost:3000/admin/bus","urlObject":{"protocol":"http","port":"3000","path":["admin","bus"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"83784635-4960-414a-a251-c1baf0e5f246"},{"name":"UPDATE BUS","id":"730af773-9fa0-47fd-a218-ba6bca85f104","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Z-Gen","type":"text"},{"key":"route","value":"Dhaka to Noakhali","type":"text"},{"key":"capacity","value":"44","type":"text"}]},"url":"http://localhost:3000/admin/bus/67488d7343f437ec283757dd","urlObject":{"protocol":"http","port":"3000","path":["admin","bus","67488d7343f437ec283757dd"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"730af773-9fa0-47fd-a218-ba6bca85f104"},{"name":"DELETE BUS","id":"3a351d6e-9fb8-453c-bf1b-bb2575a5ae8e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Jerin","type":"text"},{"key":"route","value":"Dhaka to gulstan","type":"text"},{"key":"capacity","value":"50","type":"text"}]},"url":"http://localhost:3000/admin/bus/67488de843f437ec283757e1","urlObject":{"protocol":"http","port":"3000","path":["admin","bus","67488de843f437ec283757e1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"3a351d6e-9fb8-453c-bf1b-bb2575a5ae8e"},{"name":"CREATE TICKET","id":"1a6135f2-184d-4d31-8659-be63b2f18fb6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"busId","value":"67488d7343f437ec283757dd","type":"text"},{"key":"price","value":"555","type":"text"},{"key":"timeSlot","value":"10:00 am","type":"text"}]},"url":"http://localhost:3000/admin/ticket/","urlObject":{"protocol":"http","port":"3000","path":["admin","ticket",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"1a6135f2-184d-4d31-8659-be63b2f18fb6"},{"name":"UPDATE TICKET","id":"74b1e082-a274-4faf-a485-d04c85f0afa7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"busId","value":"67488d3243f437ec283757d4","type":"text"},{"key":"price","value":"1000","type":"text"},{"key":"timeSlot","value":"11:00 am","type":"text"}]},"url":"http://localhost:3000/admin/ticket/67488e8443f437ec283757e8","urlObject":{"protocol":"http","port":"3000","path":["admin","ticket","67488e8443f437ec283757e8"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"74b1e082-a274-4faf-a485-d04c85f0afa7"},{"name":"DELETE TICKET","id":"c40ad26e-a538-4157-907e-46f95e3e2a63","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"busId","value":"6747f944d15c62f4e6340906","type":"text"},{"key":"price","value":"700","type":"text"},{"key":"timeSlot","value":"10:00","type":"text"}]},"url":"http://localhost:3000/admin/ticket/67488e6c43f437ec283757e5","urlObject":{"protocol":"http","port":"3000","path":["admin","ticket","67488e6c43f437ec283757e5"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c40ad26e-a538-4157-907e-46f95e3e2a63"}],"id":"aad7dcb6-e95c-4b12-ba52-d64a737ecdc1","description":"<p>Admin can manege bus and ticket</p>\n","_postman_id":"aad7dcb6-e95c-4b12-ba52-d64a737ecdc1"},{"name":"Bus API","item":[{"name":"GET ALL BUS","id":"7b578b79-4b2b-489c-a575-922d61330f21","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/buses","urlObject":{"protocol":"http","port":"3000","path":["buses"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7b578b79-4b2b-489c-a575-922d61330f21"}],"id":"52129899-c041-4f7b-81ef-26545c25ff3f","_postman_id":"52129899-c041-4f7b-81ef-26545c25ff3f","description":""},{"name":"Ticket API","item":[{"name":"GET ALL TICKET","id":"3aa29cc9-3d12-49ca-b051-72edb03c497e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/tickets","urlObject":{"protocol":"http","port":"3000","path":["tickets"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"3aa29cc9-3d12-49ca-b051-72edb03c497e"},{"name":"PURCHASE TICKET","id":"5c539030-4124-4dd9-82f9-c532622c38bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"busId","value":"67488d7343f437ec283757dd","type":"text"},{"key":"timeSlot","value":"10:00 pm","type":"text"}]},"url":"http://localhost:3000/tickets/purchase","urlObject":{"protocol":"http","port":"3000","path":["tickets","purchase"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5c539030-4124-4dd9-82f9-c532622c38bc"}],"id":"55d72d59-bc55-4f07-993e-05a0c2cd4f9f","_postman_id":"55d72d59-bc55-4f07-993e-05a0c2cd4f9f","description":""}]}