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-1. Download and extract the Food_Order_App_Node Server folder from the NodeJS_Assessment_ForNoncoders_Source Code.zipfolder.
2. Open a terminal and navigate to the Food_Order_App_Node Server folder init.
3.Run thenodeserver.jscommand to run the application in the local host. This will run your application on local host on port 8080.
Problem Statement
Your task is as follows
-1. Implementation of APIs to fetch cuisine details
a.Cuisine Handler- Complete the code of fetchAllCuisinesHandler()and fetchCuisineByIdHandler() to check the request method and accordingly invoke different APIs from cuisine Service.js
b.CuisineService- Complete the code of cuisineService.js to define 3 APIs-to fetch all cuisines,to fetch a cuisine by Id and to fetch a cuisine by name.
2.Implementation of APIs to fetch restaurant details
a.Restaurant Handler-Complete the code of fetch All Restaurants Handler()and fetch Restaurant By Id Handler() to check the request method and accordingly invoke different APIs from restaurantService.js
b.Restaurant Service-Complete the code of restaurantService.js to- define 2 APIs-to 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 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!