DineFine food advisor
DineFine food advisor · GPT Actions
Spoonacular API Integration
GET /recipes/randomGet Random RecipesGET /recipes/complexSearchSearch Recipes ComplexGET /recipes/{id}/informationGet Recipe InformationGET /recipes/findByNutrientsSearch Recipes by NutrientsGET /recipes/findByIngredientsSearch Recipes by IngredientsGET /recipes/{id}/similarGet Similar RecipesGET /recipes/mealplans/generateGenerate Meal PlanGET /mealplanner/{username}/shopping-listGet Shopping ListGET /food/wine/pairingWine PairingGET /food/jokes/randomGet Random Food JokeGET /food/trivia/randomGet Random Food TriviaGET /food/converseTalk to Chatbot
原始 API 定义
{
"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"
}
}
}
}
}
}