Skip to content

Commit daad8c7

Browse files
it is running
1 parent 157691a commit daad8c7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+9632
-985
lines changed

openapi-git-spec.json

Lines changed: 1348 additions & 0 deletions
Large diffs are not rendered by default.

openapi-git.json

Whitespace-only changes.

openapi-port.json

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
{
2+
"openapi": "3.0.0",
3+
"info": {
4+
"title": "Port API",
5+
"description": "API for managing sandbox port operations",
6+
"version": "1.0.0"
7+
},
8+
"paths": {
9+
"/port/list": {
10+
"post": {
11+
"summary": "List ports",
12+
"description": "Retrieve a list of available ports and their URLs",
13+
"operationId": "portList",
14+
"requestBody": {
15+
"required": true,
16+
"content": {
17+
"application/json": {
18+
"schema": {
19+
"type": "object",
20+
"properties": {}
21+
}
22+
}
23+
}
24+
},
25+
"responses": {
26+
"200": {
27+
"description": "Successful operation",
28+
"content": {
29+
"application/json": {
30+
"schema": {
31+
"allOf": [
32+
{
33+
"$ref": "#/components/schemas/SuccessResponse"
34+
},
35+
{
36+
"type": "object",
37+
"properties": {
38+
"result": {
39+
"type": "object",
40+
"properties": {
41+
"list": {
42+
"type": "array",
43+
"items": {
44+
"$ref": "#/components/schemas/Port"
45+
},
46+
"description": "List of available ports"
47+
}
48+
},
49+
"required": ["list"]
50+
}
51+
}
52+
}
53+
]
54+
}
55+
}
56+
}
57+
},
58+
"400": {
59+
"description": "Error listing ports",
60+
"content": {
61+
"application/json": {
62+
"schema": {
63+
"allOf": [
64+
{
65+
"$ref": "#/components/schemas/ErrorResponse"
66+
},
67+
{
68+
"type": "object",
69+
"properties": {
70+
"error": {
71+
"$ref": "#/components/schemas/CommonError"
72+
}
73+
}
74+
}
75+
]
76+
}
77+
}
78+
}
79+
}
80+
}
81+
}
82+
}
83+
},
84+
"components": {
85+
"schemas": {
86+
"SuccessResponse": {
87+
"type": "object",
88+
"properties": {
89+
"status": {
90+
"type": "number",
91+
"enum": [0],
92+
"description": "Status code for successful operations"
93+
},
94+
"result": {
95+
"type": "object",
96+
"description": "Result payload for the operation"
97+
}
98+
},
99+
"required": ["status", "result"]
100+
},
101+
"ErrorResponse": {
102+
"type": "object",
103+
"properties": {
104+
"status": {
105+
"type": "number",
106+
"enum": [1],
107+
"description": "Status code for error operations"
108+
},
109+
"error": {
110+
"type": "object",
111+
"description": "Error details"
112+
}
113+
},
114+
"required": ["status", "error"]
115+
},
116+
"CommonError": {
117+
"type": "object",
118+
"properties": {
119+
"code": {
120+
"type": "number",
121+
"description": "Error code"
122+
},
123+
"message": {
124+
"type": "string",
125+
"description": "Error message"
126+
},
127+
"data": {
128+
"type": "object",
129+
"description": "Additional error data",
130+
"nullable": true
131+
}
132+
},
133+
"required": ["code", "message"]
134+
},
135+
"Port": {
136+
"type": "object",
137+
"properties": {
138+
"port": {
139+
"type": "number",
140+
"description": "Port number"
141+
},
142+
"url": {
143+
"type": "string",
144+
"description": "URL to access the service on this port"
145+
}
146+
},
147+
"required": ["port", "url"]
148+
}
149+
}
150+
}
151+
}

openapi-sandbox-container.json

Lines changed: 179 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,179 @@
1+
{
2+
"openapi": "3.0.0",
3+
"info": {
4+
"title": "Sandbox Container API",
5+
"description": "API for managing sandbox container operations",
6+
"version": "1.0.0"
7+
},
8+
"paths": {
9+
"/container/setup": {
10+
"post": {
11+
"summary": "Setup container",
12+
"description": "Set up a new container based on a template",
13+
"operationId": "containerSetup",
14+
"requestBody": {
15+
"required": true,
16+
"content": {
17+
"application/json": {
18+
"schema": {
19+
"type": "object",
20+
"properties": {
21+
"templateId": {
22+
"type": "string",
23+
"description": "Identifier of the template to use"
24+
},
25+
"templateArgs": {
26+
"type": "object",
27+
"description": "Arguments for the template",
28+
"additionalProperties": {
29+
"type": "string"
30+
}
31+
},
32+
"features": {
33+
"type": "array",
34+
"items": {
35+
"type": "object",
36+
"properties": {
37+
"id": {
38+
"type": "string",
39+
"description": "Feature identifier"
40+
},
41+
"options": {
42+
"type": "object",
43+
"description": "Options for the feature",
44+
"additionalProperties": {
45+
"type": "string"
46+
}
47+
}
48+
},
49+
"required": ["id", "options"]
50+
},
51+
"nullable": true
52+
}
53+
},
54+
"required": ["templateId", "templateArgs"]
55+
}
56+
}
57+
}
58+
},
59+
"responses": {
60+
"200": {
61+
"description": "Successful operation",
62+
"content": {
63+
"application/json": {
64+
"schema": {
65+
"allOf": [
66+
{
67+
"$ref": "#/components/schemas/SuccessResponse"
68+
},
69+
{
70+
"type": "object",
71+
"properties": {
72+
"result": {
73+
"$ref": "#/components/schemas/TaskDTO"
74+
}
75+
}
76+
}
77+
]
78+
}
79+
}
80+
}
81+
},
82+
"400": {
83+
"description": "Error setting up container",
84+
"content": {
85+
"application/json": {
86+
"schema": {
87+
"allOf": [
88+
{
89+
"$ref": "#/components/schemas/ErrorResponse"
90+
},
91+
{
92+
"type": "object",
93+
"properties": {
94+
"error": {
95+
"$ref": "#/components/schemas/ProtocolError"
96+
}
97+
}
98+
}
99+
]
100+
}
101+
}
102+
}
103+
}
104+
}
105+
}
106+
}
107+
},
108+
"components": {
109+
"schemas": {
110+
"SuccessResponse": {
111+
"type": "object",
112+
"properties": {
113+
"status": {
114+
"type": "number",
115+
"enum": [0],
116+
"description": "Status code for successful operations"
117+
},
118+
"result": {
119+
"type": "object",
120+
"description": "Result payload for the operation"
121+
}
122+
},
123+
"required": ["status", "result"]
124+
},
125+
"ErrorResponse": {
126+
"type": "object",
127+
"properties": {
128+
"status": {
129+
"type": "number",
130+
"enum": [1],
131+
"description": "Status code for error operations"
132+
},
133+
"error": {
134+
"type": "object",
135+
"description": "Error details"
136+
}
137+
},
138+
"required": ["status", "error"]
139+
},
140+
"ProtocolError": {
141+
"type": "object",
142+
"properties": {
143+
"code": {
144+
"type": "string",
145+
"description": "Error code"
146+
},
147+
"message": {
148+
"type": "string",
149+
"description": "Error message"
150+
},
151+
"data": {
152+
"type": "object",
153+
"description": "Additional error data",
154+
"nullable": true
155+
}
156+
},
157+
"required": ["code", "message"]
158+
},
159+
"TaskDTO": {
160+
"type": "object",
161+
"properties": {
162+
"id": {
163+
"type": "string",
164+
"description": "Task identifier"
165+
},
166+
"status": {
167+
"type": "string",
168+
"description": "Task status"
169+
},
170+
"progress": {
171+
"type": "number",
172+
"description": "Task progress (0-100)"
173+
}
174+
},
175+
"required": ["id", "status", "progress"]
176+
}
177+
}
178+
}
179+
}

openapi-sandbox-fs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"version": "1.0.0"
77
},
88
"paths": {
9-
"/fs/writefile": {
9+
"/fs/writeFile": {
1010
"post": {
1111
"summary": "Write to a file",
1212
"description": "Write content to a file at the specified path",

0 commit comments

Comments
 (0)