diff --git a/api/openapi.json b/api/openapi.json index f742c2d4..c5a1a365 100644 --- a/api/openapi.json +++ b/api/openapi.json @@ -305,6 +305,109 @@ } } } + }, + "/api/v1/workspaces/{workspace_name}/alerts": { + "get": { + "tags": [ + "CodeGate API", + "Workspaces" + ], + "summary": "Get Workspace Alerts", + "description": "Get alerts for a workspace.", + "operationId": "v1_get_workspace_alerts", + "parameters": [ + { + "name": "workspace_name", + "in": "path", + "required": true, + "schema": { + "type": "string", + "title": "Workspace Name" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/AlertConversation" + }, + { + "type": "null" + } + ] + }, + "title": "Response V1 Get Workspace Alerts" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, + "/api/v1/workspaces/{workspace_name}/messages": { + "get": { + "tags": [ + "CodeGate API", + "Workspaces" + ], + "summary": "Get Workspace Messages", + "description": "Get messages for a workspace.", + "operationId": "v1_get_workspace_messages", + "parameters": [ + { + "name": "workspace_name", + "in": "path", + "required": true, + "schema": { + "type": "string", + "title": "Workspace Name" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Conversation" + }, + "title": "Response V1 Get Workspace Messages" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } } }, "components": {