Java REST API for managing authors, books, and orders
- ⚙️ Java 17+
- 🔧 JAX-RS (Jakarta RESTful Web Services)
- 📦 Maven
- 🧪 NetBeans IDE
- 🌐 Apache Tomcat Server
- 📄 JSON Data Format
- 📝 Author & Book Management – Full CRUD operations with validation
- 🛒 Order System – Place, retrieve, and manage customer orders
- 🚫 Robust Exception Handling – Custom error mappers with clear messages
- 🔐 Input Validation – Ensure data integrity at every endpoint
- 🧹 Clean Code Architecture – Layered design using services, resources, and models
- 📦 WAR Deployment Ready – Easy to deploy on any servlet container
- 🔁 RESTful Endpoint Design – Follows industry conventions for HTTP verbs and responses
# Clone the repository git clone https://github.com/your-username/bookstore-api.gitcd bookstore-api
mvn clean package
📍 Access API Endpoints:
- http://localhost:8080/testAPI/api/authors
- http://localhost:8080/testAPI/api/books
- http://localhost:8080/testAPI/api/orders
├── models # Data classes (Book, Author, Order) ├── services # Business logic ├── resources # JAX-RS REST endpoints ├── mappers # Custom exception handlers └── webapp # Deployment configuration (web.xml)
- RESTful API development practice
- Java + Maven + Tomcat deployment workflows
- Clean, scalable backend design for web applications