Take home assignment::
Extend the application.
-
Delete Employee by Id using API
-
Introduce a new Department resource should have Table(department_id, department_name), Spring Implementation:: Controller, Service, Entity, Repository
-
Alter the employee table to contain department_id as Foreign key to Department table in Mysql
-
User @OneToOne annotation in EmployeeEntity to introduce DepartmentEntity as part of EmployeeEntity
-
Return EmployeeEntity with department info eg. Current format:: { "id": 123, "name": "adam", }
Expected format:: { "id": 123, "name": "adam", "department": { "departmentId": 1, "departmentName": "Software Engineering" } }