subject

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.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:10
Ihave a music player on my phone. i can buy songs, add them to playlists and play them. obviously it would be redundant to store each song in each playlist; each playlist is just a list of pointers to the songs. for this lab you will simulate this behavior. your program will need to have options to: add songs to the system library (you will store the text of the first line of the song, rather than the audio) add playlists add songs to a playlist list playlists play a playlist list all of the songs in the library with a count of how many times each song has been played remove a song from a playlist remove a playlist remove a song from the library (and thus from all playlists that contain it) note that we will not be checking many error cases. in real programming this would be bad, you should usually try to recognize and respond to as many types of errors as you can. in the context of class we are trying to acquaint you with as many concepts as possible, so for the sake of educational efficiency we will not be checking most errors in this lab, you may assume that your user provides correct input. you may add all appropriate error testing if you wish, but we will not be testing for it.
Answers: 2
question
Computers and Technology, 24.06.2019 11:00
These statements describe lists in presentation programs: a. bullets can be turned off and on. b. bullets cannot be turned off. c. bullet styles, colors, and sizes can be changed. d. lists don't have to use bullets or numbers. e. numbering styles, colors, and sizes can be changed. f. numbers can be turned off and on. g. numbers cannot be turned off. select all that apply
Answers: 2
question
Computers and Technology, 24.06.2019 22:00
According to your study unit, what is the main reason that improved human relations skills may improve your grades?
Answers: 1
question
Computers and Technology, 25.06.2019 00:30
Which email writing etiquette should ariel follow to let people know that she received their message? a. reply to their messages immediately b. use formal language c. specify the email's intent in the subject field d. be direct when writing the reply
Answers: 1
You know the right answer?
Write a Node program for the following scenario: 1. Developer should provide 2 JSON Files
â–...
Questions
question
Computers and Technology, 07.09.2019 03:20
question
Mathematics, 07.09.2019 03:20
question
Mathematics, 07.09.2019 03:30