Question: This week you will be building APIs in the node server for Food Order Application. We have provided the starter code for the Node Server
This week you will be building APIs in the node server for Food Order Application. We have provided the starter code for the Node Server which you will be working on
To run the Node Server App in the local host kindly follow the below mentioned
steps Download and extract the FoodOrderAppNode Server folder from the NodeJSAssessmentForNoncodersSource Code.zipfolder.
Open a terminal and navigate to the FoodOrderAppNode Server folder init.
Run thenodeserverjscommand to run the application in the local host. This will run your application on local host on port
Problem Statement
Your task is as follows
Implementation of APIs to fetch cuisine details
aCuisine Handler Complete the code of fetchAllCuisinesHandlerand fetchCuisineByIdHandler to check the request method and accordingly invoke different APIs from cuisine Service.js
bCuisineService Complete the code of cuisineService.js to define APIsto fetch all cuisines,to fetch a cuisine by Id and to fetch a cuisine by name.
Implementation of APIs to fetch restaurant details
aRestaurant HandlerComplete the code of fetch All Restaurants Handlerand fetch Restaurant By Id Handler to check the request method and accordingly invoke different APIs from restaurantService.js
bRestaurant ServiceComplete the code of restaurantService.js to define APIsto fetch all restaurants and to fetch a restaurant by Id
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
