-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.yaml
39 lines (38 loc) · 902 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
34
35
36
37
38
39
openapi: 3.0.1
info:
title: Bash Terminal Plugin
description: A plugin that allows the user to interact with the bash terminal using ChatGPT.
version: 'v1'
servers:
- url: http://localhost:5003
paths:
/bash:
post:
operationId: executeBash
summary: Execute a bash command
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/executeBashRequest'
responses:
"200":
description: OK
content:
text/plain:
schema:
type: string
"400":
description: Bad Request
components:
schemas:
executeBashRequest:
type: object
required:
- command
properties:
command:
type: string
description: The bash command to execute.
required: true