28
30
31 >
Figure 1 - List all Employees
Requirement:
Return an array of employees object from the employee's collection, not including output formatting techniques - (1 mark).
Display the correct number of data fields and formatting as output - (0.5 marks).
Display correct data of the fields: fullName 0.5 marks; department 0.5 marks;manager -0.5 marks; dependents - 0.5 marks
Note: If the names of the output data fields are incorrect, reduce 0.5 marks.
Question 2. (2.5 marks)
List employees by department identifier as shown in Figure 2, with the following API
endpoint parameters:
URI:
http://localhost:9999/department/:departmentld
Method: GET
+ 95%
Zoom
Close