- use
appscript in terminal ./app start./app composer install./app doctrine:schema:create./app doctrine:schema:create --env=test./app console doctrine:fixtures:load
./app tests
- Add employee:
POST http://localhost:8888/employeesno payload - Add business trip for employee:
POST http://localhost:8888/employees/{employeeId}/business-tripswith payload
{
"startDate": "YYYY-MM-DD HH:MM:SS",
"endDate": "YYYY-MM-DD HH:MM:SS",
"countryCode": "XX"
}
- List business trips of employee:
GET http://localhost:8888/employees/{employeeId}/business-trips