Question: create a local GET API to retrieve the list of user information from the file. Note: Please use express & jsonfile package. 1.) Create a

create a local GET API to retrieve the list of user information from the file.

Note: Please use express & jsonfile package.

1.) Create a text file with the following information at least ten records.

name,age,phone number Note:

The information should be comma separate.

2.) When you create a GET API using express, it should return the user information list from the file you created above.

API Name should be: http://localhost:3000/getListOfUsers

Note:

File Name should be: main.js for your final file.

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!