-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathfigletgptplugin.wisemonkey.repl.co.yaml
60 lines (59 loc) · 1.76 KB
/
figletgptplugin.wisemonkey.repl.co.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
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
openapi: 3.0.1
info:
title: Ascii Art Font Generator
description: Plugin for converting strings of text into ascii fonts.
version: 'v1'
servers:
- url: https://figletgptplugin.wisemonkey.repl.co
paths:
/text:
post:
operationId: GenerateAsciiArt
summary: Convert text to ASCII art
parameters:
- name: text
in: query
description: The text to be converted, example fonts are doom, graffiti, avatar, big, bulbhead, chunky, cybermedium, epic, graceful, small, double
required: true
schema:
type: string
- name: font
in: query
description: The font style for the ASCII art (default standard)
required: false
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
status:
type: string
description: Status of the request
text:
type: string
description: The input text
font:
type: string
description: The font style used for ASCII art
ascii:
type: string
description: The generated ASCII art
example: "<pre> __ \n / _|\n| |_ \n| _|\n|_| \n \n</pre>"
/fonts:
get:
operationId: FontList
summary: List all available fonts
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items:
type: string