Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Update OpenAPI #677

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
103 changes: 103 additions & 0 deletions api/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down