Skip to content

Commit 51f2f6f

Browse files
Update backend-api-docs.json (#2261)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent a68f920 commit 51f2f6f

File tree

1 file changed

+84
-0
lines changed

1 file changed

+84
-0
lines changed

save-backend/backend-api-docs.json

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9411,6 +9411,53 @@
94119411
]
94129412
}
94139413
},
9414+
"/api/v1/vulnerabilities/save-date": {
9415+
"post": {
9416+
"description": "Save new date.",
9417+
"operationId": "saveDate",
9418+
"requestBody": {
9419+
"content": {
9420+
"application/json": {
9421+
"schema": {
9422+
"$ref": "#/components/schemas/VulnerabilityDateDto"
9423+
}
9424+
}
9425+
},
9426+
"required": true
9427+
},
9428+
"responses": {
9429+
"200": {
9430+
"content": {
9431+
"*/*": {
9432+
"schema": {
9433+
"type": "string"
9434+
}
9435+
}
9436+
},
9437+
"description": "Successfully saved new date in vulnerability"
9438+
},
9439+
"401": {
9440+
"content": {
9441+
"*/*": {
9442+
"schema": {
9443+
"type": "string"
9444+
}
9445+
}
9446+
},
9447+
"description": "Unauthorized"
9448+
}
9449+
},
9450+
"security": [
9451+
{
9452+
"basic": []
9453+
}
9454+
],
9455+
"summary": "Save new date.",
9456+
"tags": [
9457+
"vulnerabilities"
9458+
]
9459+
}
9460+
},
94149461
"/api/v1/vulnerabilities/save-projects": {
94159462
"post": {
94169463
"description": "Save new projects.",
@@ -11364,8 +11411,36 @@
1136411411
}
1136511412
}
1136611413
},
11414+
"VulnerabilityDateDto": {
11415+
"required": [
11416+
"date",
11417+
"type",
11418+
"vulnerabilityName"
11419+
],
11420+
"type": "object",
11421+
"properties": {
11422+
"date": {
11423+
"$ref": "#/components/schemas/LocalDateTime"
11424+
},
11425+
"type": {
11426+
"type": "string",
11427+
"enum": [
11428+
"CVE created",
11429+
"CVE updated",
11430+
"Discovered",
11431+
"Fixed",
11432+
"Introduced",
11433+
"Released"
11434+
]
11435+
},
11436+
"vulnerabilityName": {
11437+
"type": "string"
11438+
}
11439+
}
11440+
},
1136711441
"VulnerabilityDto": {
1136811442
"required": [
11443+
"dates",
1136911444
"isActive",
1137011445
"language",
1137111446
"name",
@@ -11376,6 +11451,12 @@
1137611451
],
1137711452
"type": "object",
1137811453
"properties": {
11454+
"dates": {
11455+
"type": "array",
11456+
"items": {
11457+
"$ref": "#/components/schemas/VulnerabilityDateDto"
11458+
}
11459+
},
1137911460
"description": {
1138011461
"type": "string"
1138111462
},
@@ -11396,6 +11477,9 @@
1139611477
"name": {
1139711478
"type": "string"
1139811479
},
11480+
"organization": {
11481+
"$ref": "#/components/schemas/OrganizationDto"
11482+
},
1139911483
"progress": {
1140011484
"type": "integer",
1140111485
"format": "int32"

0 commit comments

Comments
 (0)