Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

workers

Table of Contents

About

Test Project - Backend Side Includes abilities to create, get and delete units, And create / delete / fetch / update all workers of units.

Installing

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

Usage

Server Base URI on development mode: http://localhost:8080 Project has 2 controllers:

  • Unit
  • Worker

Unit Routes

Get all units

  GET /unit

Response: Units list

Get unit

  GET /unit/:id

Response: Unit

Delete unit

  Delete /unit/:id

Create unit

  Post /unit/:id
Parameter Description
name unit name
managerName unit manager name

Response: Unit

Worker Routes

Get all workers

  GET /unit/:unitId/worker

Response: Workers list

Get worker

  GET /unit/:unitId/worker/:workerId

Response: Worker

Delete worker

  Delete /unit/:unitId/worker/:workerId

Create Worker

  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

Next Steps

  • Add Swagger
  • Add Logger
  • Validation Inputs
  • Exceptions management
  • Unit tests

About

Test Project - Backend

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages