Skip to content

Commit 417c3ea

Browse files
Update OpenAPI to version generated from ref bfd2a66 (#1211)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent bfd2a66 commit 417c3ea

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

Diff for: api/openapi.json

+68
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,50 @@
720720
}
721721
}
722722
},
723+
"/api/v1/workspaces/{workspace_name}/alerts-summary": {
724+
"get": {
725+
"tags": [
726+
"CodeGate API",
727+
"Workspaces"
728+
],
729+
"summary": "Get Workspace Alerts Summary",
730+
"description": "Get alert summary for a workspace.",
731+
"operationId": "v1_get_workspace_alerts_summary",
732+
"parameters": [
733+
{
734+
"name": "workspace_name",
735+
"in": "path",
736+
"required": true,
737+
"schema": {
738+
"type": "string",
739+
"title": "Workspace Name"
740+
}
741+
}
742+
],
743+
"responses": {
744+
"200": {
745+
"description": "Successful Response",
746+
"content": {
747+
"application/json": {
748+
"schema": {
749+
"$ref": "#/components/schemas/AlertSummary"
750+
}
751+
}
752+
}
753+
},
754+
"422": {
755+
"description": "Validation Error",
756+
"content": {
757+
"application/json": {
758+
"schema": {
759+
"$ref": "#/components/schemas/HTTPValidationError"
760+
}
761+
}
762+
}
763+
}
764+
}
765+
}
766+
},
723767
"/api/v1/workspaces/{workspace_name}/messages": {
724768
"get": {
725769
"tags": [
@@ -1352,6 +1396,30 @@
13521396
],
13531397
"title": "AlertSeverity"
13541398
},
1399+
"AlertSummary": {
1400+
"properties": {
1401+
"malicious_packages": {
1402+
"type": "integer",
1403+
"title": "Malicious Packages"
1404+
},
1405+
"pii": {
1406+
"type": "integer",
1407+
"title": "Pii"
1408+
},
1409+
"secrets": {
1410+
"type": "integer",
1411+
"title": "Secrets"
1412+
}
1413+
},
1414+
"type": "object",
1415+
"required": [
1416+
"malicious_packages",
1417+
"pii",
1418+
"secrets"
1419+
],
1420+
"title": "AlertSummary",
1421+
"description": "Represents a set of summary alerts"
1422+
},
13551423
"ChatMessage": {
13561424
"properties": {
13571425
"message": {

0 commit comments

Comments
 (0)