Question: I need help with creating the code for the following. Please no copy and pasted vague answers as these are GET methods: Write a short

I need help with creating the code for the following. Please no copy and pasted vague answers as these are GET methods:

Write a short REST service using the node.js and express framework that does the following:

User does a GET request to this URI patterns:

(1) localhost:8080/burgers/4/fries/3

(Returns a picture or response that summaries the order and asks when the number of fires and burgers don't match, are you sure you don't want x amount of fries with your burgers where x is the difference in the numbers of burgers and fires ordered)

(2) localhost:8080/nachos/2/cheese/tomatoes/salsa/hot

(Returns a picture or response that summaries the order for the number of nachos with all of the remaining patterns indicating what to put on the nachos)

Your answer can be a single app.js node application

Please help

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!