Skip to content

Commit 38d1964

Browse files
OAS Update
1 parent 325d9a1 commit 38d1964

File tree

1 file changed

+186
-0
lines changed

1 file changed

+186
-0
lines changed

services/git/v1beta/git.json

Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
1+
{
2+
"components": {
3+
"schemas": {
4+
"Instance": {
5+
"description": "Describes a STACKIT Git instance.",
6+
"properties": {
7+
"created": {
8+
"description": "The date and time the creation of the STACKIT GIT instance was triggered.",
9+
"format": "date-time",
10+
"maxLength": 48,
11+
"type": "string"
12+
},
13+
"id": {
14+
"description": "A auto generated unique id which identifies the STACKIT GIT instances.",
15+
"format": "uuid",
16+
"maxLength": 36,
17+
"type": "string"
18+
},
19+
"name": {
20+
"description": "A user chosen name to distinguish multiple STACKIT GIT instances.",
21+
"maxLength": 32,
22+
"type": "string"
23+
},
24+
"state": {
25+
"description": "The current state of the STACKIT GIT instance.",
26+
"enum": [
27+
"Creating",
28+
"WaitingForResources",
29+
"Updating",
30+
"Deleting",
31+
"Ready",
32+
"Error"
33+
],
34+
"maxLength": 32,
35+
"type": "string"
36+
},
37+
"url": {
38+
"description": "The URL for reaching the STACKIT GIT instance.",
39+
"maxLength": 2048,
40+
"type": "string"
41+
},
42+
"version": {
43+
"description": "The current version of STACKIT GIT deployed to the instance.",
44+
"maxLength": 20,
45+
"type": "string"
46+
}
47+
},
48+
"required": [
49+
"id",
50+
"name",
51+
"url",
52+
"created",
53+
"state",
54+
"version"
55+
]
56+
},
57+
"InternalServerErrorResponse": {
58+
"description": "Internal server error.",
59+
"properties": {
60+
"error": {
61+
"example": "Internal server error.",
62+
"type": "string"
63+
}
64+
},
65+
"type": "object"
66+
},
67+
"ListInstances": {
68+
"description": "A list of STACKIT Git instances.",
69+
"properties": {
70+
"instances": {
71+
"items": {
72+
"$ref": "#/components/schemas/Instance"
73+
},
74+
"maxItems": 50,
75+
"type": "array"
76+
}
77+
},
78+
"required": [
79+
"instances"
80+
]
81+
},
82+
"UnauthorizedResponse": {
83+
"description": "The request could not be authorized.",
84+
"properties": {
85+
"error": {
86+
"example": "The request could not be authorized",
87+
"type": "string"
88+
}
89+
},
90+
"type": "object"
91+
}
92+
}
93+
},
94+
"info": {
95+
"contact": {
96+
"email": "[email protected]",
97+
"name": "STACKIT Git",
98+
"url": "https://docs.stackit.cloud/stackit/en/git-261161358.html"
99+
},
100+
"description": "Manage STACKIT Git instances.",
101+
"title": "STACKIT Git API",
102+
"version": "1beta.0.3"
103+
},
104+
"openapi": "3.0.3",
105+
"paths": {
106+
"/v1beta/projects/{projectId}/instances": {
107+
"get": {
108+
"description": "Returns a list of all STACKIT Git instances within the project.",
109+
"operationId": "ListInstances",
110+
"responses": {
111+
"200": {
112+
"content": {
113+
"application/json": {
114+
"schema": {
115+
"$ref": "#/components/schemas/ListInstances"
116+
}
117+
}
118+
},
119+
"description": "Successful response with all instances."
120+
},
121+
"400": {
122+
"description": "Bad Request."
123+
},
124+
"401": {
125+
"content": {
126+
"application/json": {
127+
"schema": {
128+
"$ref": "#/components/schemas/UnauthorizedResponse"
129+
}
130+
}
131+
},
132+
"description": "Unauthorized."
133+
},
134+
"500": {
135+
"content": {
136+
"application/json": {
137+
"schema": {
138+
"$ref": "#/components/schemas/InternalServerErrorResponse"
139+
}
140+
}
141+
},
142+
"description": "Internal server error."
143+
}
144+
},
145+
"summary": "STACKIT Git instances exist within a project, and a project may have zero or more instances.\nThis endpoint allows a user with read-access to a project to list all instances that exist\nwithin the specified project.\n",
146+
"x-stackit-authorization": {
147+
"actions": [
148+
"git.instance.list"
149+
],
150+
"resource-id": "projectId",
151+
"resource-id-type": "dynamic",
152+
"resource-type": "project"
153+
}
154+
},
155+
"parameters": [
156+
{
157+
"description": "The STACKIT portal project UUID the STACKIT Git instance is part of.",
158+
"example": "83b8e9c4-e3d1-4dc4-bb89-9854c8b5383e",
159+
"in": "path",
160+
"name": "projectId",
161+
"required": true,
162+
"schema": {
163+
"format": "uuid",
164+
"maxLength": 36,
165+
"type": "string"
166+
}
167+
}
168+
]
169+
}
170+
},
171+
"security": [
172+
{
173+
"bearerAuth": []
174+
}
175+
],
176+
"servers": [
177+
{
178+
"url": "https://git.api.stackit.cloud",
179+
"variables": {
180+
"region": {
181+
"default": "global"
182+
}
183+
}
184+
}
185+
]
186+
}

0 commit comments

Comments
 (0)