- Install dependencies:
npm install-
Navigate to the folder for the API type you are looging for
-
Start the waiter server:
node waiter.server.mjs- In a separate terminal, start the API server:
node {APITYPE}.server.mjsThe REST API is available at http://localhost:3000 and provides the following endpoints:
GET /menu: Returns all menu items- Optional query parameter:
maxPrice(e.g.,/menu?maxPrice=5)
- Optional query parameter:
GET /menu/vegetarian: Returns only vegetarian menu items