Food Endpoints
GET /food
Retrieve a list of all food items.
Response 200 OK
GET /food/{id}
Retrieve a specific food item by its ID.
Response 200 OK
Response 404 Not Found
Response 500 Internal Server Error
POST /food
Create a new food item.
Request Body
- name: (String) The name of the food item. This field is required.
- description: (String) A brief description of the food item. This field is required.
- price: (Number) The price of the food item. This field is required.
- menuId: (Number) The menu id of the food item. This field is required.
Example