Figure 3 - The result of API at /api/order/getorderbydate/{From}/{To} (using method GET)
1.3 (2 point)
The API at url/api/employee/delete/{Employeeld}
Receives the string that is (Employeeld).
using POST method.
This API deletes the employee that has (Employeeld) and all related information in the database and returns:
o NotFound() if no employee has (Employeeld).
• The number of employees, orders, order details are deleted if there is the employee that has (Employeeld). Note that, between tables Employee, Order, Order Details have foreign key constraint.
Conflict() with message "There was an unknown error when performing data deletion." if any exception occurs during data deletion
See Figure 4, 5, 6 for more detail.
Employee
/api/Employer/Delets (Imployerid)
Figure 4- The result of api at /api/employee/delete/(Employeeld) when employee not found by request Employeeld.
Zoom FUO + 80%
Close