Prototyper
Prototyper · GPT アクション
The Webapp Prototyper
A service to upload and host HTML content.
POST /uploadhtmlUploadHtmlExpects a JSON payload with the HTML content in an 'htmlContent' property and returns the URL where the content is accessible.
元の API スキーマ
{
"openapi": "3.1.0",
"info": {
"title": "The Webapp Prototyper",
"description": "A service to upload and host HTML content.",
"version": "v1.0.0"
},
"servers": [
{
"url": "https://enigmatic-depths-81745-88603b24c113.herokuapp.com"
}
],
"paths": {
"/uploadhtml": {
"post": {
"description": "Expects a JSON payload with the HTML content in an 'htmlContent' property and returns the URL where the content is accessible.",
"operationId": "UploadHtml",
"requestBody": {
"description": "JSON object containing the HTML content to be uploaded.",
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"htmlContent": {
"type": "string",
"description": "The HTML content to be uploaded as a string.",
"example": "<html><body>Your HTML content here</body></html>"
}
},
"required": [
"htmlContent"
]
}
}
}
},
"responses": {
"200": {
"description": "Successful upload, returns URL of the hosted content.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The URL of the hosted HTML content.",
"example": "https://enigmatic-depths-81745-88603b24c113.herokuapp.com/pages/{uuid}/"
}
}
}
}
}
}
}
}
}
}
}