-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathapp.eraser.io.json
78 lines (78 loc) · 2.27 KB
/
app.eraser.io.json
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"openapi": "3.1.0",
"info": {
"title": "Eraser",
"version": "v1.0"
},
"servers": [
{
"url": "https://app.eraser.io",
"description": "Eraser Server for ChatGPT"
}
],
"paths": {
"/api/render/prompt": {
"post": {
"operationId": "generateDiagramFromPrompt",
"externalDocs": {
"description": "API documentation for DiagramGPT",
"url": "https://docs.eraser.io/reference"
},
"summary": "Generate diagram from code or natural language",
"responses": {
"200": {
"description": "The result of the diagram generation",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"imageUrl": {
"type": "string",
"description": "URL of the generated diagram as a PNG image"
},
"createEraserFileUrl": {
"type": "string",
"description": "URL to edit the generated diagram"
}
}
}
}
}
},
"500": {
"description": "Eraser was unable to generate a result"
},
"400": {
"description": "The request is missing the 'text' parameter"
},
"403": {
"description": "Unauthorized"
},
"503": {
"description": "Service temporarily unavailable. This may be the result of too many requests."
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"text"
],
"properties": {
"text": {
"type": "string",
"description": "The input code or natural langauge which describes a diagram. When the user is asking for a specific type of diagram, make that clear. Use '/n' in place of new lines."
}
}
}
}
}
}
}
}
}
}