A robust Event Booking REST API built with Spring Boot and PostgreSQL.
TicketSwift is a backend service designed to handle event creation, management, and real-time ticket reservations. It ensures data integrity through transactional processing and enforces business rules for seat availability.
- Event Management: CRUD operations to manage events, locations, and pricing.
- Smart Search: Custom JPA queries to filter events by location (case-insensitive).
- Transactional Booking: Atomic booking process that ensures seats are never overbooked.
- Data Integrity: Strict database constraints using Jakarta Persistence (JPA).
- Automated Schema: Real-time database synchronization with Hibernate.
- Framework: Spring Boot 3.5.12
- Language: Java 21
- Database: PostgreSQL
- ORM: Spring Data JPA / Hibernate
- Tooling: Lombok, Maven, Postman
| Method | Endpoint | Description |
|---|---|---|
GET |
/ticketswift/events |
Fetch all available events |
POST |
/ticketswift/events |
Create a new event |
GET |
/ticketswift/events/{id} |
Get event details by ID |
GET |
/ticketswift/events/search?location=pune |
Search events by location |
| Method | Endpoint | Description |
|---|---|---|
POST |
/ticketswift/bookings |
Book tickets (updates available seats) |
- Clone the repository:
git clone [https://github.com/tan-byte/ticketswift.git](https://github.com/tan-byte/ticketswift.git)