Recipe Search

Content Type: Module
Categories: Tracing

Overview

This module is used to search the recipe of what you want to cook, you can search by using ingredient names or by using country names.

Documentation

Recipe Search

Objective

This module is used to search for the recipe for what you want to cook. You can search by using ingredient names or by using country names.

Dependencies

• Mendix Version 9.7.1

• API Key: To create an API key, navigate to https://api-ninjas.com/api/recipe. Firstly, you need to sign up, then once you log in, search for the "Recipe API" and click on the "Get a Free API Key" button, then copy the same.

image

Configuration

• Import the module "Recipe Search" from the Mendix Marketplace.

• Paste your API-Key as the default value of the constant, which is named "API_Key," inside the Resources folder.

• Add the "Recipe_Overview" page to your navigation.

• Start the app, go to the Recipe Overview page, and search for a recipe.

• Now, as a result, you will get a list of recipes with their ingredients, servings, and instructions on how to cook them.

Resources

• A sub-flow, namely "Sub_GetRecipesList," is used to call the REST service to fetch the recipe.

image

• A page with the name "Error_Page" is used to show the user when there is no recipe found on their search

image

• A page named "Recipe_Overview" is the one we used to search the ingredients. image

Response

When you search for any recipe, you will get a response like the below images:

image

Releases

Version: 1.0.0
Framework Version: 9.7.0
Release Notes: **Recipe Search** **Objective** This module searches for the recipe for what you want to cook. You can search by using ingredient names or by using country names. **Dependencies** • Mendix Version 9.7.1 • API Key: To create an API key, navigate to https://api-ninjas.com/api/recipe. Firstly, you need to sign up, then once you log in, search for the "Recipe API" and click on the "Get a Free API Key" button, then copy the same. ![image](https://user-images.githubusercontent.com/126890368/222752550-b4a4787e-9630-4982-9d8a-faf8e38cbbba.png) **Configuration** • Import the module "Recipe Search" from the Mendix Marketplace. • Paste your API-Key as the default value of the constant, named "API_Key," inside the Resources folder. • Add the "Recipe_Overview" page to your navigation. • Start the app, go to the Recipe Overview page, and search for a recipe. • Now, as a result, you will get a list of recipes with their ingredients, servings, and instructions on how to cook them. **Resources** • A sub-flow, "Sub_GetRecipesList," is called the REST service to fetch the recipe. ![image](https://user-images.githubusercontent.com/126890368/222752610-7d29ead9-9967-4ddb-bb52-230bf4d1b387.png) • A page with the name "Error_Page" is used to show the user when there is no recipe found on their search. ![image](https://user-images.githubusercontent.com/126890368/222752648-46fece4c-7203-4218-99d6-88d711ff62c7.png) • A page named "Recipe_Overview" is the one we used to search for the ingredients. ![image](https://user-images.githubusercontent.com/126890368/222752674-fe3efb35-6746-4654-a896-1986aae39a93.png) **Response** When you search for any recipe, you will get a response like the below images: ![image](https://user-images.githubusercontent.com/126890368/222752708-5b7ff20b-ce97-4a41-a259-0f7cf2842b81.png)