Part of an infant caregiver’s responsibilities is to foster social connections and emotional development.
Blog
Select the appropriate preterite form that best completes th…
Select the appropriate preterite form that best completes the sentence. La tienda ________ a las seis de la tarde.
Family child care provides child care for children in the ch…
Family child care provides child care for children in the child’s own home.
What percentage of your final grade do your assignments and…
What percentage of your final grade do your assignments and quizzes count?
Toddlers need large, open areas to use push toys, straddle l…
Toddlers need large, open areas to use push toys, straddle large trucks, and roll large balls.
OverviewYou will be building a Node Express application with…
OverviewYou will be building a Node Express application with API endpoints in TypeScript that will be used for reading, adding, updating and removing recipes. You can use an application like Postman for testing your API. Read the entire question carefully. Instructions Download recipe.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 recipe.json. Hint: You can either read the file or use it in a variable. Create a GET endpoint that will return all of the recipes as JSON. (2.5 points) Create another GET endpoint that takes in an id as a route parameter and returns the recipe matching that id. This endpoint will return a status code of 404 with the message “Recipe with the id not found” if no object matches the provided id. (2.5 points) Create a POST endpoint that adds a new recipe 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”. If a recipe with the same id already exists in the list, return a status code of 500 with the message “Recipe id already exists”. If a recipe is successfully added, return a status code of 200 with the message “Recipe added successfully”. (5 points) Create a PUT endpoint that modifies an existing recipe on the list. If any of the fields are missing in the body, you should respond with a status code of 500 with the message “Missing data”. If a recipe is successfully updated, return a status code of 200 with the message “Recipe updated successfully”.(5 points) Create a DELETE endpoint that removes a recipe from the list based on the id passed in. If a recipe with the id doesn’t exist in the list, return a status code of 404 with the message “Recipe not found”. If a recipe is successfully deleted, return a status code of 200 with the message “Recipe deleted successfully.” (5 points) After the Express application is restarted, if the GET endpoint from #4 is called, it will display the 3 recipes from recipe.json in the same order as listed in the recipe.json file. Bonus Question (5 points): Create a new PUT endpoint that has two route parameters named “sourceIndex” and “destIndex”, the body for this request can be null. You will move the recipe in the list at the sourceIndex to the destIndex; for example. if the list looked like [{apple pie}, {banana bread}, {pumpkin pie}] originally, calling this endpoint with sourceIndex : 0 and destIndex 2 will rearrange the list to [{banana bread}, {pumpkin pie}, {apple pie}]. 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
¿De qué color es un elefante?
¿De qué color es un elefante?
If an infant babbles at you, you should ____.
If an infant babbles at you, you should ____.
Select the correct indirect object pronoun for the sentence….
Select the correct indirect object pronoun for the sentence. 5. El vendedor ___________ describió el nuevo centro comercial. (a él)
Select the appropriate form of the verbs saber or conocer to…
Select the appropriate form of the verbs saber or conocer to complete the sentence. 6. Mis primos te __________ .