- Communication with docker is handled by Makefile
- Docker configuration was tested on windows with wsl and mac
- If you need to generate app compatible id use
make identifier
- Execute
make setup
Default host for local environment is localhost
Endpoint: POST /payroll-report/generate
Endpoint returns generated report id
to be used in next functionality.
Endpoint: GET /payroll-report/{id}/rows
Can be sorted using query param in format ?sort[sortName]=sortDirection
.
Available sort names are:
- name
- surname
- department
- remunerationBase
- additionToBase
- bonusType
- salaryWithBonus
Available sort directions are:
- asc
- desc
Can be filtered using query param in format ?filterName=filterValue
.
Available filter names are:
- department
- name
- surname
Database details are:
Host: localhost
Port: 3306
User: root
Password: rootpassword
Database: payroll
Database type: mariadb 10.5.5
- Departments, employees and bonuses can be added by making direct inserts into database
- Request can only use one sort at a time
- Request can use many filters at a time