Question: Question1 Show the routes only for a server.js file for a WEB API with the following functionality: Show the routes only for a server.js file

 Question1 Show the routes only for a "server.js" file for a

Question1

Show the routes only for a "server.js" file for a WEB API with the following functionality:

Show the routes only for a "server.js" file for a WEB API with the following functionality: PUT /api/employees/NUM - returns the JSON-formatted string: (message: "employee with number: NUM updated to: EmployeeInfo") (where NUM can be any employee number and Employeeinfo is the updated information for the employee (formatted using JSON.stringifyo) GET /api/employees - returns the JSON-formatted string: (message: "all employees"} GET /api/employees/NUM - returns the JSON-formatted string: (message: "employee with number: NUM") (where NUM can be any employee number) DELETE /api/employees/NUM - returns the JSON formatted string: (message: "removed employee with number: NUM") (where NUM can be any employee number POST/api/employees - returns the ISON formatted string: {message: "added new employee: Employeelnfo"}(where Employeeinfo is the information for the new employee (formatted using JSON.stringify)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!