10
12
12
13
1.
description: "Handles customer inquities and resolves issues."
"exployees": [
"name":
"firstName": "Michael",
"lastName": "Doe",
"siddleName": "Ryan"
"dateDfBirth": "1990-85-15",
"gender": "sale",
"department": null,
Body Cookies Headers (7) Test Results
Pretty Raw
201 Created 73 ms 4718
Save Response
10
11
12
13
14
15
Preview Visualize JSON
"message": "Create new department and add employees succesfully",
"result": {
"departmentId": "6705ffee87114567a57ec5e7",
"departmentName": "Customer Service",
"employeesList": [
1
"name": "Michael Ryan Doe"
"name": "Emily Jane Clark"
Figure 3 - Create new department and employees
Requirement:
Create a new department successfully - (0.5 marks).
Create new employees belonging to the successfully added department - (1 mark).
Note: Reduce 1 mark, if not update the "department" data field of each employee
document inserted.
Return the correct format and result after successfully inserted, shown in Figure 4 - (1 mark)
Zoom
+ 95%
Close