OverviewYou will be building a Node Express application with API endpoints in TypeScript that will be used for reading, adding, and deleting people. You can use an application like Postman for testing your API. Read the entire question carefully. I have provided the tsconfig.json file under the Final Exam module if you wish you use my version of the file. Make sure that your application runs when you enter “npm start” in the terminal. Instructions Download people.json from under the Final Exam module and examine the file data carefully. Do NOT modify this file. You can use any technique you want to use the content of people.json. (You can either read the file or use it in a variable.) Create a GET endpoint that will return all of the people as JSON. (5 points) Create another GET endpoint that takes in an id as a route parameter and returns the person matching that id. This endpoint will return a status code of 404 with the message “Person with the id not found” if no person matches the provided id. (5 points) Create a POST endpoint that adds a new person to your list based on the fields passed in the body. If any of the fields are missing, you should respond with a status code of 500 with the message “Missing data.”. You should not pass the id as part of the body in the POST request; you should programmatically find and use the next available number for the id based on the person list. If a person is successfully added, return a status code of 200 with the message “Person added.”. (15 points) Create a DELETE endpoint that removes a person from the list based on the id passed in. If a person with the id doesn’t exist in the list, return a status code of 404 with the message “Person not found”. If a person is successfully deleted, return a status code of 200 with the message “Person deleted.” (5 points) After the Express application is restarted, if the GET endpoint from #4 is called, it will display the 3 people from people.json in the same order as listed in the people.json file. Make sure that your application runs on port 3000. Submission Place all of the files needed to run this application in a single zip file. Note: Do NOT include the “node_modules” folder in your zip file, I will deduct 5 points if your zip file contains the “node_modules” folder. The zip file must be named in the format lastname_firstname_final_api.zip. For example using my name it would be shrestha_gaurav_final_api.zip
You are on vacation. You are writing to a French friend. You…
You are on vacation. You are writing to a French friend. You tell her about: the weather the city what you do daily the people you tell her that you are going to visit her you ask her a few questions about how she is doing, and what she’s been doing during the vacation. (at least 100 words) Don’t forget to : Open and close the postcard/letter Use connectors such as “but”, “also”, “so”, etc.
Quel est le repas principal de la journée ?
Quel est le repas principal de la journée ?
Tous les Français mangent un grand repas traditionnel chaque…
Tous les Français mangent un grand repas traditionnel chaque soir.
Le __________________ est traditionnellement le repas princi…
Le __________________ est traditionnellement le repas principal de la journée en France.
Donne un exemple d’entrée chaude mentionné dans le texte.
Donne un exemple d’entrée chaude mentionné dans le texte.
Which of the following is not a reward tool designed to be u…
Which of the following is not a reward tool designed to be used in a team-based environment?
When seeking to create a new organizational culture, an orga…
When seeking to create a new organizational culture, an organization should consider creating stories and myths that support new culture values.
_____________ represents the pressures on individual group m…
_____________ represents the pressures on individual group members to conform and reach consensus.
The term DM refers to the following condition:
The term DM refers to the following condition: