generated from etherlegend/chatgpt-plugin-node-todo
-
Notifications
You must be signed in to change notification settings - Fork 2
/
openapi.yaml
93 lines (93 loc) · 2.35 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
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
openapi: 3.0.1
info:
title: System Info and Command Runner Plugin
description: A plugin that allows users to run command line programs after obtaining the system information to accomplish it's goal.
version: 'v1'
servers:
- url: http://localhost:5004
paths:
/system/os-version:
get:
operationId: getOSVersion
summary: Get the OS version
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/OSVersionResponse'
/system/local-time:
get:
operationId: getLocalTime
summary: Get the local time
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/LocalTimeResponse'
/system/current-folder:
get:
operationId: getCurrentFolder
summary: Get the current folder
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/CurrentFolderResponse'
/system/command:
post:
operationId: runCommand
summary: Run a command
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/RunCommandRequest'
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/RunCommandResponse'
components:
schemas:
OSVersionResponse:
type: object
properties:
os_version:
type: string
description: The OS version.
LocalTimeResponse:
type: object
properties:
local_time:
type: string
description: The local time.
CurrentFolderResponse:
type: object
properties:
current_folder:
type: string
description: The current folder.
RunCommandRequest:
type: object
required:
- command
properties:
command:
type: string
description: The command to run.
required: true
RunCommandResponse:
type: object
properties:
output:
type: string
description: The output of the command.