- We have developed this REST API for Online Cab Booking Application. This API performs all the fundamental CRUD operations of any Cab Booking Application platform with user validation at every step.
- This project is developed by team of 5 Back-end Developers during project week in Masai School.
- Java
- Spring Framework
- Spring Boot
- Spring Data JPA
- Hibernate
- MySQL
- Spring Security
- Login Module
- Admin Module
- Customer Module
- Driver Management Module
- Cab Management Module
- Booking Management Module
-
Admin, Customer and Driver authentication JWT Token.
-
Admin Features:
- Administrator Role of the entire application
-
Customer Features:
- Registering themselves with application, and logging in to get the valid JWT token
-
Driver Features:
- Registering themselves with application, and logging in to get the valid JWT token
- 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=8088
spring.datasource.url=jdbc:mysql://localhost:3306/rideeasy
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.username=root
spring.datasource.password=root
https://localhost:8088/
http://localhost:8088/swagger-ui.html/
POST //login/admin
: Admin can login with username and password provided at the time of registation
POST /customers
: Register a new customer with proper data validation
POST /admin
: Register a new admin with proper data validation
POST /driver
: Register a new driver with proper data validation
POST localhost:8088/admin
- Request Body
{
"userName": "xyz123",
"password": "abcde",
"name" : "dummy",
"email" : "dummy@gmail.com",
"mobileNumber" : "9555555555"
}
- Response
{ adminId=1, userName=xyz123, name=dummy, email=dummy@gmail.com, mobileNumber=9555555555 }