Diagrams & Charts
Diagrams & Charts · Actions GPT
ABDiagramsCharts
GET /diagrams/createFileLinkA unique upload link along with the ID and instructions for the user. You must use the ID in the future for getting info from the file.POST /diagrams/getgetBatchPOST /diagrams/save-bar-chartSaves Bart Chart informationPOST /diagrams/save-pie-chartSaves Pie Chart informationPOST /diagrams/save-line-chartSaves Line Chart informationPOST /diagrams/save-bubble-chartSaves Bubble Chart informationPOST /diagrams/save-class-diagramSaves Class Diagram information
Schéma original API
{
"openapi": "3.0.1",
"info": {
"title": "ABDiagramsCharts",
"version": "v1"
},
"servers": [
{
"url": "https://api.copilot.us/run/654d23dc80b7a5ccae50e700/65786cb0956caf0360799198"
}
],
"paths": {
"/diagrams/createFileLink": {
"get": {
"operationId": "createFileLink",
"summary": "A unique upload link along with the ID and instructions for the user. You must use the ID in the future for getting info from the file.",
"responses": {
"200": {
"description": "The file upload link.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/profileUploadResponse"
}
}
}
}
}
}
},
"/diagrams/get": {
"post": {
"operationId": "getBatch",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IdSchema"
}
}
}
},
"responses": {
"200": {
"description": "Response for batch retrieval.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BatchResponseSchema"
}
}
}
}
}
}
},
"/diagrams/save-bar-chart": {
"post": {
"operationId": "SaveBartChart",
"summary": "Saves Bart Chart information",
"requestBody": {
"description": "Body containing Bart Chart details.",
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BartChart"
}
}
}
},
"responses": {
"200": {
"description": "Information about the success of the operation.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SuccessfulResponse"
}
}
}
}
}
}
},
"/diagrams/save-pie-chart": {
"post": {
"operationId": "SavePieChart ",
"summary": "Saves Pie Chart information",
"requestBody": {
"description": "Body containing Pie Chart details.",
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PieChart"
}
}
}
},
"responses": {
"200": {
"description": "Information about the success of the operation.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SuccessfulResponse"
}
}
}
}
}
}
},
"/diagrams/save-line-chart": {
"post": {
"operationId": "SaveLineChart",
"summary": "Saves Line Chart information",
"requestBody": {
"description": "Body containing Line Chart details.",
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LineChart"
}
}
}
},
"responses": {
"200": {
"description": "Information about the success of the operation.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SuccessfulResponse"
}
}
}
}
}
}
},
"/diagrams/save-bubble-chart": {
"post": {
"operationId": "SaveBubbleChart",
"summary": "Saves Bubble Chart information",
"requestBody": {
"description": "Body containing Bubble Chart details.",
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BubbleChart"
}
}
}
},
"responses": {
"200": {
"description": "Information about the success of the operation.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SuccessfulResponse"
}
}
}
}
}
}
},
"/diagrams/save-class-diagram": {
"post": {
"operationId": "SaveClassDiagram",
"summary": "Saves Class Diagram information",
"requestBody": {
"description": "Body containing Class Diagram details.",
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ClassDiagram"
}
}
}
},
"responses": {
"200": {
"description": "Information about the success of the operation.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SuccessfulResponse"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"profileUploadResponse": {
"type": "object",
"properties": {
"responseInstructions": {
"type": "string",
"description": "Encourage the user to use this link to upload the file. Ask user to let you know when it's done and file is uplaoded."
},
"FileUploadLink": {
"type": "string",
"description": "The file upload link"
}
}
},
"SaveBatchSchema": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"sheetName": {
"type": "string"
}
},
"required": [
"url"
]
},
"StatusIdResponseSchema": {
"type": "object",
"properties": {
"status": {
"type": "string"
},
"id": {
"type": "string"
},
"responseInstructions": {
"type": "string"
}
}
},
"IdSchema": {
"type": "object",
"properties": {
"id": {
"type": "string"
}
},
"required": [
"id"
]
},
"BatchResponseSchema": {
"type": "object",
"properties": {
"status": {
"type": "string"
},
"responseInstructions": {
"type": "string"
},
"batches": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string"
}
}
},
"columns": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"BartChart": {
"type": "object",
"properties": {
"title": {
"type": "string",
"nullable": true,
"description": "Title of the Chart."
},
"subTitle": {
"type": "string",
"nullable": true,
"description": "Subitle of the Chart."
},
"data": {
"$ref": "#/components/schemas/ListChartUnits"
},
"text": {
"type": "int",
"nullable": true,
"description": "Text that describe the Chart."
},
"seriesName": {
"type": "string",
"description": "The unit of measurement for the chart."
}
}
},
"ListChartUnits": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ChartUnit"
}
},
"ChartUnit": {
"type": "object",
"properties": {
"key": {
"type": "string",
"description": "Key of Chart Unit."
},
"value": {
"type": "int",
"description": "Value of Chart Unit."
}
}
},
"PieChart": {
"type": "object",
"properties": {
"title": {
"type": "string",
"nullable": true,
"description": "Title of the Chart."
},
"subTitle": {
"type": "string",
"nullable": true,
"description": "Subitle of the Chart."
},
"pieChartSectors": {
"$ref": "#/components/schemas/ListPieChartSectors"
},
"text": {
"type": "int",
"nullable": true,
"description": "Text that describe the Chart."
},
"seriesName": {
"type": "string",
"description": "The unit of measurement for the chart."
}
}
},
"ListPieChartSectors": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PieChartSector"
}
},
"PieChartSector": {
"type": "object",
"properties": {
"sectorName": {
"type": "string",
"description": "Sector name of the Pie Chart."
},
"value": {
"type": "int",
"description": "Value of the sector."
}
}
},
"LineChart": {
"type": "object",
"properties": {
"title": {
"type": "string",
"nullable": true,
"description": "Title of the Chart."
},
"subTitle": {
"type": "string",
"nullable": true,
"description": "Subitle of the Chart."
},
"data": {
"$ref": "#/components/schemas/LineChartData"
},
"text": {
"type": "int",
"nullable": true,
"description": "Text that describe the Chart."
},
"seriesName": {
"type": "string",
"description": "The unit of measurement for the chart."
}
}
},
"LineChartData": {
"type": "object",
"properties": {
"keys": {
"type": "array",
"items": {
"type": "string"
},
"description": "Keys of Chart Unit."
},
"lineChartsValues": {
"type": "array",
"items": {
"$ref": "#/components/schemas/LineChartValues"
}
}
}
},
"LineChartValues": {
"type": "object",
"properties": {
"seriesName": {
"type": "string",
"description": "The unit of measurement for the chart."
},
"values": {
"type": "array",
"items": {
"type": "decimal"
},
"description": "Values of Chart."
}
}
},
"BubbleChart": {
"type": "object",
"properties": {
"title": {
"type": "string",
"nullable": true,
"description": "Title of the Chart."
},
"subTitle": {
"type": "string",
"nullable": true,
"description": "Subitle of the Chart."
},
"data": {
"$ref": "#/components/schemas/ListBubbleChartPoints"
},
"text": {
"type": "int",
"nullable": true,
"description": "Text that describe the Chart."
},
"xName": {
"type": "string",
"description": "X name of the Chart."
},
"yName": {
"type": "string",
"description": "Y name of the Chart."
},
"seriesName": {
"type": "string",
"description": "Series name of the Chart."
}
}
},
"ListBubbleChartPoints": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BubbleChartPoint"
}
},
"BubbleChartPoint": {
"type": "object",
"properties": {
"xValue": {
"type": "string",
"description": "X value of point."
},
"yValue": {
"type": "string",
"description": "Y value of point."
},
"numberOfRepits": {
"type": "string",
"description": "Number of points' repits."
}
}
},
"ClassDiagram": {
"type": "object",
"properties": {
"title": {
"type": "string",
"nullable": true,
"description": "Title of the Diagram."
},
"subTitle": {
"type": "string",
"nullable": true,
"description": "Subitle of the Diagram."
},
"data": {
"$ref": "#/components/schemas/ListPaths"
},
"text": {
"type": "int",
"nullable": true,
"description": "Text that describe the Diagram."
}
}
},
"ListPaths": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Path"
}
},
"Path": {
"type": "object",
"properties": {
"from": {
"type": "string",
"description": "From what build a path."
},
"to": {
"type": "string",
"description": "To what build a path."
}
}
},
"SuccessfulResponse": {
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Indicates if the operation was successful."
},
"responseInstructions": {
"type": "string",
"description": "Instructions."
}
}
}
}
}
}