Skip to content

The Online Cab Booking Service REST API provides essential CRUD operations for a cab booking platform. It includes modules for Login, Admin, Customer, Driver, Cab, and Booking Management. With JWT token authentication, it ensures secure access for Admin, Customer, and Driver roles.

Notifications You must be signed in to change notification settings

abhishekyadav0888/RideEasy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

REST API for Online Cab Booking Service

  • 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.

Tech Stack

  • Java
  • Spring Framework
  • Spring Boot
  • Spring Data JPA
  • Hibernate
  • MySQL
  • Spring Security

Modules

  • Login Module
  • Admin Module
  • Customer Module
  • Driver Management Module
  • Cab Management Module
  • Booking Management Module

Features

  • 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

Contributors

Installation & Run

  • 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

API Root Endpoint

https://localhost:8088/

http://localhost:8088/swagger-ui.html/

API Module Endpoints

Login Module

  • POST //login/admin : Admin can login with username and password provided at the time of registation

Customer Module

  • POST /customers : Register a new customer with proper data validation

Admin Module

  • POST /admin : Register a new admin with proper data validation

Driver Module

  • POST /driver : Register a new driver with proper data validation

Sample API Response for Admin Register

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 }
   

E-R Diagram

ERDaigram

Swagger UI



Customer and Customer Login Controller



Admin and Admin Login Controller



Driver and Driver Login Controller



Trip Controller



About

The Online Cab Booking Service REST API provides essential CRUD operations for a cab booking platform. It includes modules for Login, Admin, Customer, Driver, Cab, and Booking Management. With JWT token authentication, it ensures secure access for Admin, Customer, and Driver roles.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published