-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.sandbox.container.yaml
More file actions
131 lines (131 loc) · 3.52 KB
/
openapi.sandbox.container.yaml
File metadata and controls
131 lines (131 loc) · 3.52 KB
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
openapi: 3.0.0
info:
title: Sandbox Container API
description: API for managing sandbox container operations
version: 1.0.0
paths:
/container/setup:
post:
summary: Setup container
description: Set up a new container based on a template
operationId: containerSetup
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
templateId:
type: string
description: Identifier of the template to use
templateArgs:
type: object
description: Arguments for the template
additionalProperties:
type: string
features:
type: array
items:
type: object
properties:
id:
type: string
description: Feature identifier
options:
type: object
description: Options for the feature
additionalProperties:
type: string
required:
- id
- options
nullable: true
required:
- templateId
- templateArgs
responses:
'200':
description: Successful operation
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/SuccessResponse'
- type: object
properties:
result:
$ref: '#/components/schemas/TaskDTO'
'400':
description: Error setting up container
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/ErrorResponse'
- type: object
properties:
error:
$ref: '#/components/schemas/ProtocolError'
components:
schemas:
SuccessResponse:
type: object
properties:
status:
type: number
enum:
- 0
description: Status code for successful operations
result:
type: object
description: Result payload for the operation
required:
- status
- result
ErrorResponse:
type: object
properties:
status:
type: number
enum:
- 1
description: Status code for error operations
error:
type: object
description: Error details
required:
- status
- error
ProtocolError:
type: object
properties:
code:
type: string
description: Error code
message:
type: string
description: Error message
data:
type: object
description: Additional error data
nullable: true
required:
- code
- message
TaskDTO:
type: object
properties:
id:
type: string
description: Task identifier
status:
type: string
description: Task status
progress:
type: number
description: Task progress (0-100)
required:
- id
- status
- progress