A REST API for managing job postings, built with Java, JAX-RS (Jersey), JDBC and MySQL.
The project provides CRUD operations for job listings and follows a layered architecture separating API resources, business logic and database access.
- Java 8
- JAX-RS
- Jersey
- JDBC
- MySQL
- Maven
- Tomcat
- Docker
HTTP Request
↓
Resource
↓
Service
↓
DAO
↓
JDBC
↓
MySQL
Handles REST endpoints, HTTP requests and responses.
Contains the application logic and connects the Resource and DAO layers.
Handles database operations using JDBC.
Contains the application models.
Base path:
/api/v1
GET /api/v1/jobs/allGET /api/v1/jobs?id={id}POST /api/v1/jobs/createPUT /api/v1/jobs?id={id}DELETE /api/v1/jobs?id={id}./mvnw clean packageOn Windows:
mvnw.cmd clean packageThe application is packaged as a WAR and can be deployed to Tomcat.
Build the application first:
./mvnw clean packageThen build the Docker image:
docker build -t jobs-api .The application runs on Tomcat using port 8080.