-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
231 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,231 @@ | ||
|
||
{ | ||
"openapi": "3.1.0", | ||
"info": { | ||
"title": "FastAPI", | ||
"version": "0.1.0" | ||
}, | ||
"servers": [ | ||
{"url": "https://wcgw.arcfu.com"} | ||
], | ||
"paths": { | ||
"/write_file": { | ||
"post": { | ||
"x-openai-isConsequential": false, | ||
"summary": "Write File", | ||
"operationId": "write_file_write_file__uuid__post", | ||
"parameters": [ | ||
{ | ||
"name": "user_id", | ||
"in": "query", | ||
"required": true, | ||
"schema": { | ||
"type": "string", | ||
"format": "uuid", | ||
"title": "User Id" | ||
} | ||
} | ||
], | ||
"requestBody": { | ||
"required": true, | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/Writefile" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"description": "Successful Response", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"type": "string", | ||
"title": "Response Write File Write File Uuid Post" | ||
} | ||
} | ||
} | ||
}, | ||
"422": { | ||
"description": "Validation Error", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/HTTPValidationError" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"/execute_bash": { | ||
"post": { | ||
"x-openai-isConsequential": false, | ||
"summary": "Execute Bash", | ||
"operationId": "execute_bash_execute_bash__uuid__post", | ||
"parameters": [ | ||
{ | ||
"name": "user_id", | ||
"in": "query", | ||
"required": true, | ||
"schema": { | ||
"type": "string", | ||
"format": "uuid", | ||
"title": "User Id" | ||
} | ||
} | ||
], | ||
"requestBody": { | ||
"required": true, | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/ExecuteBash" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"description": "Successful Response", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"type": "string", | ||
"title": "Response Execute Bash Execute Bash Uuid Post" | ||
} | ||
} | ||
} | ||
}, | ||
"422": { | ||
"description": "Validation Error", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/HTTPValidationError" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"components": { | ||
"schemas": { | ||
"ExecuteBash": { | ||
"properties": { | ||
"execute_command": { | ||
"anyOf": [ | ||
{ | ||
"type": "string" | ||
}, | ||
{ | ||
"type": "null" | ||
} | ||
], | ||
"title": "Execute Command" | ||
}, | ||
"send_ascii": { | ||
"anyOf": [ | ||
{ | ||
"items": { | ||
"anyOf": [ | ||
{ | ||
"type": "integer" | ||
}, | ||
{ | ||
"type": "string", | ||
"enum": [ | ||
"Key-up", | ||
"Key-down", | ||
"Key-left", | ||
"Key-right", | ||
"Enter", | ||
"Ctrl-c" | ||
] | ||
} | ||
] | ||
}, | ||
"type": "array" | ||
}, | ||
{ | ||
"type": "null" | ||
} | ||
], | ||
"title": "Send Ascii" | ||
} | ||
}, | ||
"type": "object", | ||
"title": "ExecuteBash" | ||
}, | ||
"HTTPValidationError": { | ||
"properties": { | ||
"detail": { | ||
"items": { | ||
"$ref": "#/components/schemas/ValidationError" | ||
}, | ||
"type": "array", | ||
"title": "Detail" | ||
} | ||
}, | ||
"type": "object", | ||
"title": "HTTPValidationError" | ||
}, | ||
"ValidationError": { | ||
"properties": { | ||
"loc": { | ||
"items": { | ||
"anyOf": [ | ||
{ | ||
"type": "string" | ||
}, | ||
{ | ||
"type": "integer" | ||
} | ||
] | ||
}, | ||
"type": "array", | ||
"title": "Location" | ||
}, | ||
"msg": { | ||
"type": "string", | ||
"title": "Message" | ||
}, | ||
"type": { | ||
"type": "string", | ||
"title": "Error Type" | ||
} | ||
}, | ||
"type": "object", | ||
"required": [ | ||
"loc", | ||
"msg", | ||
"type" | ||
], | ||
"title": "ValidationError" | ||
}, | ||
"Writefile": { | ||
"properties": { | ||
"file_path": { | ||
"type": "string", | ||
"title": "File Path" | ||
}, | ||
"file_content": { | ||
"type": "string", | ||
"title": "File Content" | ||
} | ||
}, | ||
"type": "object", | ||
"required": [ | ||
"file_path", | ||
"file_content" | ||
], | ||
"title": "Writefile" | ||
} | ||
} | ||
} | ||
} |