Skip to content

Developed a RESTful Car Booking API using Java, Maven, Spring Boot, and Spring Data JPA. empowered users to efficiently manage customers, cars, and bookings for a car rental company. The API exposes a series of endpoints for creating, retrieving, updating, and deleting customers, cars, and bookings.

Notifications You must be signed in to change notification settings

HosamUsf/Car-Booking-Api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Car Booking API

Extension and improvement of our CLI Car Booking Application to a REST API that will constitute our backend and expose a series of endpoints.

Technologies Used

  • Java 17
  • Maven
  • Spring Boot 3
  • Spring Data JPA
  • PostgreSQL Database running on
  • *Docker

Endpoints

Endpoints Description
Customers
GET /api/v1/users Retrieves All the Users
GET /api/v1/users/{id} Retrieves the User with the specified id
POST /api/v1/users Adds a New User
DELETE /api/v1/users/{id} Deletes the User with the specified id
Cars
GET /api/v1/cars Retrieves All the Cars
GET /api/v1/cars/rn/{regNumber} Retrieves the Car with the specified regNumber
GET /api/v1/cars/available Retrieves the available cars
GET /api/v1/cars/available-electric Retrieves the availabe electric cars
POST /api/v1/cars Adds a New Car
DELETE /api/v1/cars/{id} Deletes the Car with the specified id
Bookings
GET /api/v1/bookings Retrieves All the Bookings
GET /api/v1/bookings/{id} Retrieves the Booking with the specified id
POST /api /v1/bookings Adds a New Booking

About

Developed a RESTful Car Booking API using Java, Maven, Spring Boot, and Spring Data JPA. empowered users to efficiently manage customers, cars, and bookings for a car rental company. The API exposes a series of endpoints for creating, retrieving, updating, and deleting customers, cars, and bookings.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages