-
We have created a REST API for an online cab booking application that can be used by customers to login into their profile, update their information and book cabs, by a driver to log in and update their details along with their cab details and accept a ride from the customer. All this is overlooked by the admin who can also login and update their information as well as access the data in the application. We have implemented data and user validation at every step, for every user.
-
Customer should be able to view the list of available cabs.
-
Customer should be able to book a cab for the desired location from a specific site.
-
Admin should be able to perform the below operations:
1. Cab Management 2. Driver Management 3. Booking Management
- Java
- Spring Framework
- Spring Boot
- Spring Data JPA
- Hibernate
- MySQL
- Lombok
- Swagger
- Login Module
- Admin Module
- Customer Module
- Driver Management Module
- Cab Management Module
- Booking Management Module
- Before running the API server, you should update the database config inside the application.properties file.
- Update the port number, username and password as per your local database config.
server.port=8080
spring.datasource.url=jdbc:mysql://localhost:3306/rentcar
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.username=root
spring.datasource.password=root
http://localhost:8080/swagger-ui/index.html#/
POST localhost:8080/Userlogin/Login
- Request Body
{
"email": "[email protected]",
"password": "umesh"
}
{
"email": "[email protected]",
"password": "umesh"
}