Specifically, I need help with a schema that should send an image and text description to a third-party API.
The current schema looks like this:
{
"openapi": "3.1.0",
"info": {
"title": "My Title",
"description": "Post the prompt and image to mydomain.com",
"version": "v1.0.0"
},
"servers": [
{
"url": "https://mydomain.com/wp-json/prompt-api/v1"
}
],
"paths": {
"/gpt-create-prompt/": {
"post": {
"description": "Post prompt data and image",
"operationId": "PostPrompt",
"x-openai-isConsequential": true,
"requestBody": {
"description": "Image and JSON data to send",
"required": true,
"content": {
"multipart/form-data": {
"schema": {
"type": "object",
"properties": {
"prompt_image": {
"type": "string",
"format": "binary"
},
"prompt_data": {
"type": "string"
}
}
}
}
}
},
"responses": {
"201": {
"description": "Prompt created successfully"
},
"400": {
"description": "Bad request"
}
},
"deprecated": false
}
}
},
"components": {
"schemas": {}
}
}