Test Project - Backend Side Includes abilities to create, get and delete units, And create / delete / fetch / update all workers of units.
Make sure you have mysql installed, and a DB exists.
Download this package,
Update correct db settings in application.settings file
and then run:
./gradlew bootRun
Server Base URI on development mode: http://localhost:8080 Project has 2 controllers:
- Unit
- Worker
GET /unitResponse: Units list
GET /unit/:idResponse: Unit
Delete /unit/:id Post /unit/:id| Parameter | Description |
|---|---|
name |
unit name |
managerName |
unit manager name |
Response: Unit
GET /unit/:unitId/workerResponse: Workers list
GET /unit/:unitId/worker/:workerIdResponse: Worker
Delete /unit/:unitId/worker/:workerId Post /unit/:unitId/worker| Parameter | Description |
|---|---|
firstName |
worker first name |
lastName |
worker last name |
workerNumber |
unique idetify number for worker |
birthDate |
worker birthday |
startWorkAt |
date the worker start to work |
Response: Worker
- Add Swagger
- Add Logger
- Validation Inputs
- Exceptions management
- Unit tests