This is probably very basic question but I can't find straight answer to it, I was thinking about it for a while and still didn't figure out what is best practice?
In parent - child relationship, e.g. Department / Employee should I have actions like:
DepartmentController -> addEmpoyee(deptId)
DepartmentController -> editEmpoyee(empId)
DepartmentController -> employees(deptId)
Or rather create separate controller for Employee operations? EmployeeController -> add(deptId) EmployeeController -> edit(empId) EmployeeController -> list(deptId)
Second approach makes sense to me but the first seems to be logical as well as employees are child entities of dept...