- This REST API was created by us for an Online Trip Management System. This API handles all of the basic CRUD functions of any Trip Management Application platform, including user validation at each stage.
- During project week at Masai School, a group of 5 back-end developers worked on this project.
- Core Java
- Spring Framework
- Spring Boot
- Spring Data JPA
- Hibernate
- MySQL
- PostMan
- Swagger
- Lombok
- Login as Customer
- View Routes
- View Tours/Travels Packages
- Book / Print / Cancel Tickets
- Payment
- Provide/View Testimonials
- Login into the Application
- User Management
- Tours/Travels Package Management
- Route and Bus Management
- Ticket and Hotel Booking Management
- View Reports
- Role of the entire application's administrator.
- Only logged-in admin with active session tokens can add, update, or delete customers, hotels, routes, or packages from the main database.
- The admin has access to information on various routes, buses, packages, ticket data, customer feedback, reports, etc.
- On the platform, a customer can register him.
- Customer can check the availability of hotels and travel packages.
- After booking a hotel, he will receive booking information for the whole Package. This information will include all important information, such as ticket information and pricing.
- The customer has the option to cancel the booking.
- You need update the database configuration in the application.properties file before launching the API server.
- Change the port number, username, and password to match your local database configuration.
server.port=8880
spring.datasource.url=jdbc:mysql://localhost:3306/tripmaker;
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.username=dbusername
spring.datasource.password=dbpassword
http://localhost:8880/swagger-ui/
POST //api/userlogin
: Customer can login with mobile number and password provided at the time of registation
POST localhost:8080/login/userlogin
- Request Body
{
"mobileNo": "9425152246",
"password": "rishabh@1111"
}
- Response
CurrentCustomerSession(id=3, userId=2, uuid=415935, localDateTime=2022-11-20T12:56:05.984284400)