Computers and Technology

Write a Node program for the following scenario: 1. Developer should provide 2 JSON Files
â–º The First JSON File should contain Employee Name along with Employee Details and Project ID â–º Second JSON File should contain information about the Projects (containing Project ID and Related Details)
2. Create 2 APIs, providing the following details:
â–º First API would take the Employee Id as Input and Queries the underlying JSON File to fetch Employee Data at: (localhost:3000/employee/:id)
â–º Second API would take the Project ID as input and Query the JSON File to fetch Project Information at: (localhost:3000/project/:id)
3. Using the above specified APIs, create a new API at: (localhost:3000/getemployeedetails)
This API would get the Employee Data along with the details about the project. (Make Use of fetch and promise to resolve API).
When a query is made to the Employee API, it will fetch Employee Details, along with the Project ID. This Project ID can then be used in order to query the Project API to fetch the data. The resultant data of the API at:(localhost:3000/getemployeedetai ls) should contain details about the employee as well as details about his Project and should be returned in form of JSON data to the Client.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:00, banna01man
You need a reliable network for about twenty-five computers that will be distributed across a large building. it is important that the network be relatively cheap. which topology should you use?
Answers: 1
image
Computers and Technology, 23.06.2019 07:00, Dvrsug8598
You need a quick answer from a coworker. the most effective way to reach your coworker is through a. cloud server b. instant message c. teleconference d. telepresence
Answers: 1
image
Computers and Technology, 23.06.2019 12:00, lyn94
Using the list, you can select the number of photos that will appear on each slide. a. theme b. frame shape c. pictures in album d. picture layout
Answers: 1
image
Computers and Technology, 24.06.2019 00:30, louie8656
Match the sentence fragment in the first column with the appropriate ending in the second column. a little per favore?
Answers: 1
Do you know the correct answer?
Write a Node program for the following scenario: 1. Developer should provide 2 JSON Files
â–...

Questions in other subjects:

Konu
Mathematics, 18.12.2020 08:50
Konu
History, 18.12.2020 08:50
Konu
Social Studies, 18.12.2020 08:50
Konu
Mathematics, 18.12.2020 08:50