Add recipe download and copy yaml (#6201)
This commit is contained in:
@@ -1558,6 +1558,46 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/recipes/to-yaml": {
|
||||
"post": {
|
||||
"tags": [
|
||||
"Recipe Management"
|
||||
],
|
||||
"operationId": "recipe_to_yaml",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/RecipeToYamlRequest"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Recipe converted to YAML successfully",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/RecipeToYamlResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad request - Failed to convert recipe to YAML",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/reply": {
|
||||
"post": {
|
||||
"tags": [
|
||||
@@ -4762,6 +4802,28 @@
|
||||
"user_prompt"
|
||||
]
|
||||
},
|
||||
"RecipeToYamlRequest": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"recipe"
|
||||
],
|
||||
"properties": {
|
||||
"recipe": {
|
||||
"$ref": "#/components/schemas/Recipe"
|
||||
}
|
||||
}
|
||||
},
|
||||
"RecipeToYamlResponse": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"yaml"
|
||||
],
|
||||
"properties": {
|
||||
"yaml": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"RedactedThinkingContent": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
|
||||
Reference in New Issue
Block a user