},
10
11
12
13
14}
}
1
employees:
"id": "6706c540be090ec1c08abf89","fullName": "John Albert Doe"
"id": "6706c540be090ec1c08abf8c",
"fullName": "Alice 8 Smith
Figure 2 - List of employees by departmentid
Requirement:
Display the correct number of data fields and formatting as output - (0.5 marks).
Return correct data of the fields: department 0.5 marks; manager 0.5 marks;manager-0.5 marks; employees - 0.5 marks
Question 3. (4 marks)
Create a new department and the employees belonging to the created department as shown in Figure 3, with the following API endpoint parameters:
URI:
http://localhost:9999/department/create
Method: POST
Input: Use the downloaded sample data in SampleTest.json of the Given folder to test this functionality.
Output: Single object
Close
+ 95%
Zoom