Skip to content

Commit

Permalink
Update backend-api-docs.json (#2655)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Oct 3, 2023
1 parent d48cb33 commit 2a57e82
Showing 1 changed file with 80 additions and 11 deletions.
91 changes: 80 additions & 11 deletions save-backend/backend-api-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -10619,6 +10619,26 @@
"post": {
"description": "Get filtered vulnerabilities.",
"operationId": "getAllVulnerabilities",
"parameters": [
{
"in": "query",
"name": "page",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"in": "query",
"name": "size",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"requestBody": {
"content": {
"application/json": {
Expand Down Expand Up @@ -10931,6 +10951,55 @@
]
}
},
"/api/v1/vulnerabilities/count/by-filter": {
"post": {
"description": "Get filtered vulnerabilities.",
"operationId": "getCountVulnerabilities",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VulnerabilityFilter"
}
}
},
"required": true
},
"responses": {
"200": {
"content": {
"*/*": {
"schema": {
"type": "integer",
"format": "int64"
}
}
},
"description": "Successfully fetched all vulnerabilities by filters"
},
"401": {
"content": {
"*/*": {
"schema": {
"type": "integer",
"format": "int64"
}
}
},
"description": "Unauthorized"
}
},
"security": [
{
"basic": []
}
],
"summary": "Get all vulnerabilities with filters.",
"tags": [
"vulnerabilities"
]
}
},
"/api/v1/vulnerabilities/delete": {
"delete": {
"description": "Deleted vulnerability by its identifier.",
Expand Down Expand Up @@ -13814,9 +13883,6 @@
"name": {
"type": "string"
},
"oldName": {
"type": "string"
},
"organizations": {
"type": "object",
"additionalProperties": {
Expand Down Expand Up @@ -14085,14 +14151,17 @@
"organizationName": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"APPROVED",
"AUTO_APPROVED",
"PENDING_REVIEW",
"REJECTED"
]
"statuses": {
"type": "array",
"items": {
"type": "string",
"enum": [
"APPROVED",
"AUTO_APPROVED",
"PENDING_REVIEW",
"REJECTED"
]
}
},
"tags": {
"uniqueItems": true,
Expand Down

0 comments on commit 2a57e82

Please sign in to comment.