You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -109,15 +108,14 @@ func (a *App) GetWorkspaceHandler(w http.ResponseWriter, r *http.Request, ps htt
109
108
// @Tags workspaces
110
109
// @Accept json
111
110
// @Produce json
112
-
// @Param namespace path string false "Namespace to filter workspaces. If not provided, returns all workspaces across all namespaces." example(kubeflow-user-example-com)
111
+
// @Param namespace path string true "Namespace to filter workspaces. If not provided, returns all workspaces across all namespaces." extensions(x-example=kubeflow-user-example-com)
113
112
// @Success 200 {object} WorkspaceListEnvelope "Successful operation. Returns a list of workspaces."
Copy file name to clipboardExpand all lines: workspaces/backend/openapi/docs.go
+9-43Lines changed: 9 additions & 43 deletions
Original file line number
Diff line number
Diff line change
@@ -85,11 +85,6 @@ const docTemplate = `{
85
85
},
86
86
"/workspacekinds": {
87
87
"get": {
88
-
"security": [
89
-
{
90
-
"ApiKeyAuth": []
91
-
}
92
-
],
93
88
"description": "Returns a list of all available workspace kinds. Workspace kinds define the different types of workspaces that can be created in the system.",
94
89
"consumes": [
95
90
"application/json"
@@ -131,11 +126,6 @@ const docTemplate = `{
131
126
},
132
127
"/workspacekinds/{name}": {
133
128
"get": {
134
-
"security": [
135
-
{
136
-
"ApiKeyAuth": []
137
-
}
138
-
],
139
129
"description": "Returns details of a specific workspace kind identified by its name. Workspace kinds define the available types of workspaces that can be created.",
140
130
"consumes": [
141
131
"application/json"
@@ -150,7 +140,7 @@ const docTemplate = `{
150
140
"parameters": [
151
141
{
152
142
"type": "string",
153
-
"example": "jupyterlab",
143
+
"x-example": "jupyterlab",
154
144
"description": "Name of the workspace kind",
155
145
"name": "name",
156
146
"in": "path",
@@ -199,11 +189,6 @@ const docTemplate = `{
199
189
},
200
190
"/workspaces": {
201
191
"get": {
202
-
"security": [
203
-
{
204
-
"ApiKeyAuth": []
205
-
}
206
-
],
207
192
"description": "Returns a list of workspaces. The endpoint supports two modes:\n1. List all workspaces across all namespaces (when no namespace is provided)\n2. List workspaces in a specific namespace (when namespace is provided)",
208
193
"consumes": [
209
194
"application/json"
@@ -251,11 +236,6 @@ const docTemplate = `{
251
236
},
252
237
"/workspaces/{namespace}": {
253
238
"get": {
254
-
"security": [
255
-
{
256
-
"ApiKeyAuth": []
257
-
}
258
-
],
259
239
"description": "Returns a list of workspaces. The endpoint supports two modes:\n1. List all workspaces across all namespaces (when no namespace is provided)\n2. List workspaces in a specific namespace (when namespace is provided)",
260
240
"consumes": [
261
241
"application/json"
@@ -270,10 +250,11 @@ const docTemplate = `{
270
250
"parameters": [
271
251
{
272
252
"type": "string",
273
-
"example": "kubeflow-user-example-com",
253
+
"x-example": "kubeflow-user-example-com",
274
254
"description": "Namespace to filter workspaces. If not provided, returns all workspaces across all namespaces.",
275
255
"name": "namespace",
276
-
"in": "path"
256
+
"in": "path",
257
+
"required": true
277
258
}
278
259
],
279
260
"responses": {
@@ -310,11 +291,6 @@ const docTemplate = `{
310
291
}
311
292
},
312
293
"post": {
313
-
"security": [
314
-
{
315
-
"ApiKeyAuth": []
316
-
}
317
-
],
318
294
"description": "Creates a new workspace in the specified namespace.",
319
295
"consumes": [
320
296
"application/json"
@@ -329,7 +305,7 @@ const docTemplate = `{
329
305
"parameters": [
330
306
{
331
307
"type": "string",
332
-
"example": "kubeflow-user-example-com",
308
+
"x-example": "kubeflow-user-example-com",
333
309
"description": "Namespace for the workspace",
334
310
"name": "namespace",
335
311
"in": "path",
@@ -387,11 +363,6 @@ const docTemplate = `{
387
363
},
388
364
"/workspaces/{namespace}/{workspace_name}": {
389
365
"get": {
390
-
"security": [
391
-
{
392
-
"ApiKeyAuth": []
393
-
}
394
-
],
395
366
"description": "Returns details of a specific workspace identified by namespace and workspace name.",
396
367
"consumes": [
397
368
"application/json"
@@ -406,15 +377,15 @@ const docTemplate = `{
406
377
"parameters": [
407
378
{
408
379
"type": "string",
409
-
"example": "kubeflow-user-example-com",
380
+
"x-example": "kubeflow-user-example-com",
410
381
"description": "Namespace of the workspace",
411
382
"name": "namespace",
412
383
"in": "path",
413
384
"required": true
414
385
},
415
386
{
416
387
"type": "string",
417
-
"example": "my-workspace",
388
+
"x-example": "my-workspace",
418
389
"description": "Name of the workspace",
419
390
"name": "workspace_name",
420
391
"in": "path",
@@ -461,11 +432,6 @@ const docTemplate = `{
461
432
}
462
433
},
463
434
"delete": {
464
-
"security": [
465
-
{
466
-
"ApiKeyAuth": []
467
-
}
468
-
],
469
435
"description": "Deletes a specific workspace identified by namespace and workspace name.",
0 commit comments