-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
openapi.yaml
36 lines (36 loc) · 1.03 KB
/
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
openapi: 3.0.1
info:
title: ChatGPT ShellMaster
description: A plugin that executes a Linux/Unix commands on the host PC using ChatGPT Plus.
version: 'v1'
x-logo:
url: "file://logo.png"
servers:
- url: http://localhost:5004
paths:
/command:
post:
operationId: executeCommand
summary: Execute a Linux/Unix command
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
command:
type: string
description: The command to execute. Be careful, commands are executed as is.
responses:
"200":
description: Command executed successfully
content:
text/plain:
schema:
type: string
description: The output of the command.
"400":
description: Invalid request, command not provided
"500":
description: An error occurred while executing the command