PDF Converter
PDF Converter · GPT アクション
AaronPDFConverter
GET /pdf/create-upload-linkProvides a PDF upload link for the user.POST /pdf/save-by-urlSaves a PDF from a provided URL.GET /pdf/check-statusChecks the status of the uploaded PDF files.POST /pdf/convertConverts the PDF to the required format based on the provided query.
元の API スキーマ
{
"openapi": "3.0.1",
"info": {
"title": "AaronPDFConverter",
"version": "v1"
},
"servers": [
{
"url": "https://api.copilot.us/run/654d23dc80b7a5ccae50e700/65786cb0956caf0360799198"
}
],
"paths": {
"/pdf/create-upload-link": {
"get": {
"summary": "Provides a PDF upload link for the user.",
"operationId": "UploadPdf",
"responses": {
"200": {
"description": "Successful response with the upload link.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResponseBody"
}
}
}
}
}
}
},
"/pdf/save-by-url": {
"post": {
"summary": "Saves a PDF from a provided URL.",
"operationId": "SavePdfByProvidedUrl",
"requestBody": {
"description": "Body containing the URLs of the PDF files.",
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PdfUrls"
}
}
}
},
"responses": {
"200": {
"description": "Successful response indicating the PDF was saved.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResponseBody"
}
}
}
}
}
}
},
"/pdf/check-status": {
"get": {
"summary": "Checks the status of the uploaded PDF files.",
"operationId": "CheckStatusOfPdf",
"responses": {
"200": {
"description": "Returns the status of the uploaded PDF files.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResponseBody"
}
}
}
}
}
}
},
"/pdf/convert": {
"post": {
"summary": "Converts the PDF to the required format based on the provided query.",
"operationId": "ConvertPdf",
"requestBody": {
"description": "Body containing information required for the PDF conversion.",
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ConvertPdfBody"
}
}
}
},
"responses": {
"200": {
"description": "Successful response with the results of conversion.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResponseBody"
}
}
}
},
"400": {
"description": "Occurs when there's a validation error.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResponseBody"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"ResponseBody": {
"type": "object",
"properties": {
"status": {
"type": "string"
},
"responseInstructions": {
"type": "string"
},
"errorMessage": {
"type": "string"
},
"response": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
}
}
},
"StatusBody": {
"type": "object",
"properties": {
"status": {
"type": "string",
"description": "Returns one of the values: running, success, fail, waiting."
},
"responseInstructions": {
"type": "string",
"description": "Set of actions to inform the user about."
}
}
},
"PdfUrls": {
"type": "object",
"properties": {
"urls": {
"type": "array",
"items": {
"type": "string",
"description": "The url of the pdf file."
}
}
}
},
"ConvertPdfBody": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Prompt instructions to convert the PDF document."
},
"format": {
"type": "string",
"description": "The format the user wants to convert the PDF to."
}
}
}
}
}
}