Know your dish
Overview
The dish preparation module allows users to input a dish name and retrieve detailed step-by-step procedures for preparing that dish. Upon entering a dish name, the module searches the database for the relevant recipe and displays the preparation steps, including ingredients, cooking times, and methods. The user is guided through the process with clear instructions, ensuring a smooth experience. If the dish name is not found, the system provides a friendly error message, prompting the user to try a different name. The interface is designed for ease of use, with intuitive navigation that allows users to explore different recipes or modify their input easily.
Documentation
Detailed Steps Followed to get the receipe of a dish :
1. Inputting the Dish Name:
- The user opens the page where the module is integrated.
- A text input field is provided, prompting the user to enter the name of the dish they want to prepare.
- The input field can have an auto-complete feature to suggest dish names as the user types.
2. Submitting the Dish Name:
- Once the user has typed in the dish name, they either press the "Enter" key or click a submit button.
- The input dish name is sent to a microflow for processing, triggering the REST service request.
3. Triggering the REST Request:
- The microflow utilizes the "Consume REST Service (beta)" feature to send a request to an external recipe API.
- The request includes the dish name as a parameter in the API call, formatted according to the API's specifications.
4. Fetching Recipe Data:
- The REST service retrieves the relevant recipe information from the external API based on the dish name provided.
- The API response typically includes details such as:
- Ingredients List: All required ingredients for the dish.
- Preparation Steps: Detailed instructions on how to prepare the dish.
- Cooking Methods: Information on cooking techniques, temperatures, and durations.
- Serving Instructions: Additional serving information, if available.