CSI104_-_SP23_-_FE_2_86.webp
G

CSI104_-_SP23_-_FE_2_86.webp

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

Thông tin

Category
CSI104
Thêm bởi
Gajeel_2003
Ngày thêm
Lượt xem
1,153
Lượt bình luận
5
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom