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
// GetWorkspaceKindHandler retrieves a specific workspace kind by name.
39
+
//
40
+
// @Summary Get workspace kind
41
+
// @Description Returns details of a specific workspace kind identified by its name. Workspace kinds define the available types of workspaces that can be created.
42
+
// @Tags workspacekinds
43
+
// @Accept json
44
+
// @Produce json
45
+
// @Param name path string true "Name of the workspace kind" example(jupyterlab)
@@ -74,6 +90,19 @@ func (a *App) GetWorkspaceKindHandler(w http.ResponseWriter, r *http.Request, ps
74
90
a.dataResponse(w, r, responseEnvelope)
75
91
}
76
92
93
+
// GetWorkspaceKindsHandler returns a list of all available workspace kinds.
94
+
//
95
+
// @Summary List workspace kinds
96
+
// @Description Returns a list of all available workspace kinds. Workspace kinds define the different types of workspaces that can be created in the system.
97
+
// @Tags workspacekinds
98
+
// @Accept json
99
+
// @Produce json
100
+
// @Success 200 {object} WorkspaceKindListEnvelope "Successful operation. Returns a list of all available workspace kinds."
101
+
// @Failure 401 {object} ErrorEnvelope "Unauthorized. Authentication is required."
102
+
// @Failure 403 {object} ErrorEnvelope "Forbidden. User does not have permission to list workspace kinds."
103
+
// @Failure 500 {object} ErrorEnvelope "Internal server error. An unexpected error occurred on the server."
@@ -83,6 +100,24 @@ func (a *App) GetWorkspaceHandler(w http.ResponseWriter, r *http.Request, ps htt
83
100
a.dataResponse(w, r, responseEnvelope)
84
101
}
85
102
103
+
// GetWorkspacesHandler returns a list of workspaces.
104
+
//
105
+
// @Summary List workspaces
106
+
// @Description Returns a list of workspaces. The endpoint supports two modes:
107
+
// @Description 1. List all workspaces across all namespaces (when no namespace is provided)
108
+
// @Description 2. List workspaces in a specific namespace (when namespace is provided)
109
+
// @Tags workspaces
110
+
// @Accept json
111
+
// @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)
113
+
// @Success 200 {object} WorkspaceListEnvelope "Successful operation. Returns a list of workspaces."
0 commit comments