Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started