generated from openai/plugins-quickstart
-
Notifications
You must be signed in to change notification settings - Fork 2
/
openapi.yaml
33 lines (33 loc) · 942 Bytes
/
openapi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
openapi: 3.0.1
info:
title: Charts Generator ChatGPT Plugin
description: A plugin that creates ECharts based on user input or URL content.
version: "v1"
servers:
- url: http://localhost:5003
paths:
/charts:
post:
operationId: createChart
summary: Create an EChart based on a JSON options object
requestBody:
required: true
content:
application/json:
schema:
type: object
description: ECharts options object
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
properties:
htmlPath:
type: string
description: Path to the generated HTML file
imgPath:
type: string
description: Path to the generated PNG image