Skip to content

waqasdilawar/code-with-quarkus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

code-with-quarkus

A Quarkus-based hotel booking system.

Tech Stack

  • Java 21
  • Quarkus 3.16.3
  • Maven
  • H2 Database

API Endpoints

Get all rooms

curl -X GET http://localhost:8080/api/rooms

Book a room

curl -X POST http://localhost:8080/api/bookings \
  -H "Content-Type: application/json" \
  -d '{"roomId": 1, "guestName": "John Doe", "checkInDate": "2023-12-01", "checkOutDate": "2023-12-05"}'

Get booking by ID

curl -X GET http://localhost:8080/api/bookings/{id}

Cancel booking

curl -X DELETE http://localhost:8080/api/bookings/1

About

A Quarkus based hotel booking system.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages