Needs Docker installed to run
As a restaurant owner, I need to keep a list of my employees so I can integrate into my enterprise application systems for HR purposes.
The working service should allow basic CRUD operations for employee records via HTTP API
git clone https://github.com/mitekk/clar-gil.palikaras.git
.env
docker-compose up -d --build
http://localhost:8081/api/v1/
Get all employees or by ID (GET):
http://localhost:8081/api/v1/employees/:employeeID
Create an employee (POST):
http://localhost:8081/api/v1/employee
In request body, add data:
{ "name": "Bill", "email": "[email protected]", "dob": "1985-01-24", "department": "sales", "supervisor": 1, "userId": 1, "status": "pending" }
Update an employee (PUT):
http://localhost:8081/api/v1/employee
In request body, add data:
{ "employeeId": 2, "name": "Bill", "email": "[email protected]", "dob": "1985-01-24", "department": "sales", "supervisor": 1, "userId": 1, "status": "pending" }
Delete an employees or by ID (DELETE):
http://localhost:8081/api/v1/employee/:employeeID