Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

Merge remote-tracking branch 'origin/main' into sync-1960

Andreja9b806de5df5
diff --cc apps/docs/openapi.json
index 981ab7e00,13e3f5b1d..42c65af48
--- a/apps/docs/openapi.json
+++ b/apps/docs/openapi.json
@@@ -20173,113 -20687,6 +20733,119 @@@
}
}
},
+ "/workspace": {
+ "get": {
+ "operationId": "listWorkspaces",
+ "tags": [
+ "Workspaces"
+ ],
+ "summary": "List workspaces",
+ "description": "List the workspaces where one of the caller's roles grants workspace:read, with the caller's role, sorted by name. Instance admins get every workspace they are a member of, and only those.",
+ "responses": {
+ "200": {
+ "description": "The caller's workspaces",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Workspace"
+ }
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "403": {
+ "description": "The API key lacks workspace:read",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
++ },
++ "429": {
++ "$ref": "#/components/responses/ApiKeyRateLimited"
+ }
+ }
+ }
+ },
+ "/workspace/{workspaceId}": {
+ "get": {
+ "operationId": "getWorkspace",
+ "tags": [
+ "Workspaces"
+ ],
+ "summary": "Get workspace",
+ "description": "Get a workspace where one of the caller's roles grants workspace:read, with the caller's role. Instance admins can get any workspace, with a null role when they are not a member.",
+ "parameters": [
+ {
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "name": "workspaceId",
+ "in": "path"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The workspace",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Workspace"
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "403": {
+ "description": "The API key lacks workspace:read",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Workspace not found, the caller is not a member of it, or none of their roles grants workspace:read",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
++ },
++ "429": {
++ "$ref": "#/components/responses/ApiKeyRateLimited"
+ }
+ }
+ }
+ },
"/workspace/{workspaceId}/members": {
"get": {
"operationId": "getWorkspaceMembers",