|
305 | 305 | }
|
306 | 306 | }
|
307 | 307 | }
|
| 308 | + }, |
| 309 | + "/api/v1/workspaces/{workspace_name}/alerts": { |
| 310 | + "get": { |
| 311 | + "tags": [ |
| 312 | + "CodeGate API", |
| 313 | + "Workspaces" |
| 314 | + ], |
| 315 | + "summary": "Get Workspace Alerts", |
| 316 | + "description": "Get alerts for a workspace.", |
| 317 | + "operationId": "v1_get_workspace_alerts", |
| 318 | + "parameters": [ |
| 319 | + { |
| 320 | + "name": "workspace_name", |
| 321 | + "in": "path", |
| 322 | + "required": true, |
| 323 | + "schema": { |
| 324 | + "type": "string", |
| 325 | + "title": "Workspace Name" |
| 326 | + } |
| 327 | + } |
| 328 | + ], |
| 329 | + "responses": { |
| 330 | + "200": { |
| 331 | + "description": "Successful Response", |
| 332 | + "content": { |
| 333 | + "application/json": { |
| 334 | + "schema": { |
| 335 | + "type": "array", |
| 336 | + "items": { |
| 337 | + "anyOf": [ |
| 338 | + { |
| 339 | + "$ref": "#/components/schemas/AlertConversation" |
| 340 | + }, |
| 341 | + { |
| 342 | + "type": "null" |
| 343 | + } |
| 344 | + ] |
| 345 | + }, |
| 346 | + "title": "Response V1 Get Workspace Alerts" |
| 347 | + } |
| 348 | + } |
| 349 | + } |
| 350 | + }, |
| 351 | + "422": { |
| 352 | + "description": "Validation Error", |
| 353 | + "content": { |
| 354 | + "application/json": { |
| 355 | + "schema": { |
| 356 | + "$ref": "#/components/schemas/HTTPValidationError" |
| 357 | + } |
| 358 | + } |
| 359 | + } |
| 360 | + } |
| 361 | + } |
| 362 | + } |
| 363 | + }, |
| 364 | + "/api/v1/workspaces/{workspace_name}/messages": { |
| 365 | + "get": { |
| 366 | + "tags": [ |
| 367 | + "CodeGate API", |
| 368 | + "Workspaces" |
| 369 | + ], |
| 370 | + "summary": "Get Workspace Messages", |
| 371 | + "description": "Get messages for a workspace.", |
| 372 | + "operationId": "v1_get_workspace_messages", |
| 373 | + "parameters": [ |
| 374 | + { |
| 375 | + "name": "workspace_name", |
| 376 | + "in": "path", |
| 377 | + "required": true, |
| 378 | + "schema": { |
| 379 | + "type": "string", |
| 380 | + "title": "Workspace Name" |
| 381 | + } |
| 382 | + } |
| 383 | + ], |
| 384 | + "responses": { |
| 385 | + "200": { |
| 386 | + "description": "Successful Response", |
| 387 | + "content": { |
| 388 | + "application/json": { |
| 389 | + "schema": { |
| 390 | + "type": "array", |
| 391 | + "items": { |
| 392 | + "$ref": "#/components/schemas/Conversation" |
| 393 | + }, |
| 394 | + "title": "Response V1 Get Workspace Messages" |
| 395 | + } |
| 396 | + } |
| 397 | + } |
| 398 | + }, |
| 399 | + "422": { |
| 400 | + "description": "Validation Error", |
| 401 | + "content": { |
| 402 | + "application/json": { |
| 403 | + "schema": { |
| 404 | + "$ref": "#/components/schemas/HTTPValidationError" |
| 405 | + } |
| 406 | + } |
| 407 | + } |
| 408 | + } |
| 409 | + } |
| 410 | + } |
308 | 411 | }
|
309 | 412 | },
|
310 | 413 | "components": {
|
|
0 commit comments