DineFine food advisor

DineFine food advisor · GPT-Aktionen

Spoonacular API Integration

  • GET /recipes/randomGet Random Recipes
  • GET /recipes/complexSearchSearch Recipes Complex
  • GET /recipes/{id}/informationGet Recipe Information
  • GET /recipes/findByNutrientsSearch Recipes by Nutrients
  • GET /recipes/findByIngredientsSearch Recipes by Ingredients
  • GET /recipes/{id}/similarGet Similar Recipes
  • GET /recipes/mealplans/generateGenerate Meal Plan
  • GET /mealplanner/{username}/shopping-listGet Shopping List
  • GET /food/wine/pairingWine Pairing
  • GET /food/jokes/randomGet Random Food Joke
  • GET /food/trivia/randomGet Random Food Trivia
  • GET /food/converseTalk to Chatbot
Ursprüngliches API-Schema
{
  "openapi": "3.1.0",
  "info": {
    "title": "Spoonacular API Integration",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://spoonacular-recipe-food-nutrition-v1.p.rapidapi.com"
    }
  ],
  "paths": {
    "/recipes/random": {
      "get": {
        "summary": "Get Random Recipes",
        "operationId": "getRandomRecipes",
        "parameters": [
          {
            "name": "tags",
            "in": "query",
            "description": "Tags to filter the recipes (e.g., 'vegetarian, dessert')",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "number",
            "in": "query",
            "description": "Number of random recipes to return",
            "required": false,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved random recipes"
          }
        }
      }
    },
    "/recipes/complexSearch": {
      "get": {
        "summary": "Search Recipes Complex",
        "operationId": "searchRecipesComplex",
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "description": "Recipe search query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved recipes"
          }
        }
      }
    },
    "/recipes/{id}/information": {
      "get": {
        "summary": "Get Recipe Information",
        "operationId": "getRecipeInformation",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Unique ID of the recipe",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved recipe information"
          }
        }
      }
    },
    "/recipes/findByNutrients": {
      "get": {
        "summary": "Search Recipes by Nutrients",
        "operationId": "searchRecipesByNutrients",
        "parameters": [
          {
            "name": "minProtein",
            "in": "query",
            "description": "Minimum amount of protein",
            "required": false,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved recipes"
          }
        }
      }
    },
    "/recipes/findByIngredients": {
      "get": {
        "summary": "Search Recipes by Ingredients",
        "operationId": "searchRecipesByIngredients",
        "parameters": [
          {
            "name": "ingredients",
            "in": "query",
            "description": "Ingredients to include in the recipes",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "number",
            "in": "query",
            "description": "Number of recipes to return",
            "required": false,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved recipes"
          }
        }
      }
    },
    "/recipes/{id}/similar": {
      "get": {
        "summary": "Get Similar Recipes",
        "operationId": "getSimilarRecipes",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Unique ID of the recipe",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved similar recipes"
          }
        }
      }
    },
    "/recipes/mealplans/generate": {
      "get": {
        "summary": "Generate Meal Plan",
        "operationId": "generateMealPlan",
        "parameters": [
          {
            "name": "timeFrame",
            "in": "query",
            "description": "Time frame of the meal plan (day/week)",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully generated meal plan"
          }
        }
      }
    },
    "/mealplanner/{username}/shopping-list": {
      "get": {
        "summary": "Get Shopping List",
        "operationId": "getShoppingList",
        "parameters": [
          {
            "name": "username",
            "in": "path",
            "description": "Username of the meal planner",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "hash",
            "in": "query",
            "description": "Hash of the shopping list",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved shopping list"
          }
        }
      }
    },
    "/food/wine/pairing": {
      "get": {
        "summary": "Wine Pairing",
        "operationId": "winePairing",
        "parameters": [
          {
            "name": "food",
            "in": "query",
            "description": "Food to pair with wine",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved wine pairing"
          }
        }
      }
    },
    "/food/jokes/random": {
      "get": {
        "summary": "Get Random Food Joke",
        "operationId": "getRandomFoodJoke",
        "responses": {
          "200": {
            "description": "Successfully retrieved a random food joke"
          }
        }
      }
    },
    "/food/trivia/random": {
      "get": {
        "summary": "Get Random Food Trivia",
        "operationId": "getRandomFoodTrivia",
        "responses": {
          "200": {
            "description": "Successfully retrieved random food trivia"
          }
        }
      }
    },
    "/food/converse": {
      "get": {
        "summary": "Talk to Chatbot",
        "operationId": "talkToChatbot",
        "parameters": [
          {
            "name": "text",
            "in": "query",
            "description": "Text to converse about with the chatbot",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully conversed with chatbot"
          }
        }
      }
    }
  }
}