kitchen Sage 🧙♂️📸
kitchen Sage 🧙♂️📸 · GPT アクション
Recipe API
An API to manage recipes, including creating, listing, and voting on them.
POST /saveRecipesaveRecipeGET /recipe/randomgetRandomRecipeGET /recipeslistRecipesPOST /vote/{recipe_name}voteForRecipeGET /privacyprivacyPolicyGET /readIndex
元の API スキーマ
{
"openapi": "3.0.0",
"info": {
"title": "Recipe API",
"description": "An API to manage recipes, including creating, listing, and voting on them.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://kitchen-sage.replit.app",
"description": "Production server"
}
],
"paths": {
"/saveRecipe": {
"post": {
"operationId": "saveRecipe",
"x-openai-isConsequential": true,
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"recipeName",
"recipeContent"
],
"properties": {
"recipeName": {
"type": "string"
},
"recipeContent": {
"type": "object"
}
}
}
}
}
},
"responses": {
"201": {
"description": "Recipe saved successfully."
}
}
}
},
"/recipe/random": {
"get": {
"operationId": "getRandomRecipe",
"x-openai-isConsequential": false,
"responses": {
"200": {
"description": "A random recipe",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the recipe."
},
"content": {
"type": "string",
"description": "The content of the recipe."
},
"kisses": {
"type": "integer",
"description": "The number of kisses (votes) the recipe has received.",
"default": 0
}
}
}
}
}
}
}
}
},
"/recipes": {
"get": {
"operationId": "listRecipes",
"x-openai-isConsequential": false,
"responses": {
"200": {
"description": "List of recipe names",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
}
},
"/vote/{recipe_name}": {
"post": {
"operationId": "voteForRecipe",
"x-openai-isConsequential": true,
"parameters": [
{
"name": "recipe_name",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Voted successfully"
}
}
}
},
"/privacy": {
"get": {
"operationId": "privacyPolicy",
"x-openai-isConsequential": false,
"responses": {
"200": {
"description": "Privacy policy page",
"content": {
"text/html": {
"schema": {
"type": "string"
}
}
}
}
}
}
},
"/": {
"get": {
"operationId": "readIndex",
"x-openai-isConsequential": false,
"responses": {
"200": {
"description": "Index page",
"content": {
"text/html": {
"schema": {
"type": "string"
}
}
}
}
}
}
}
}
}