PRN231_-_PE_-_SU_2023_-_Block_5_919.webp
E

PRN231_-_PE_-_SU_2023_-_Block_5_919.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
Chưa có bình luận nào.

Thông tin

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

Image metadata

Filename
PRN231_-_PE_-_SU_2023_-_Block_5_919.webp
File size
63.5 KB
Dimensions
1920px x 1017px

Share this media

Back
Bên trên Bottom