File tree Expand file tree Collapse file tree 1 file changed +84
-0
lines changed Expand file tree Collapse file tree 1 file changed +84
-0
lines changed Original file line number Diff line number Diff line change 9411
9411
]
9412
9412
}
9413
9413
},
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
+ },
9414
9461
"/api/v1/vulnerabilities/save-projects" : {
9415
9462
"post" : {
9416
9463
"description" : " Save new projects." ,
11364
11411
}
11365
11412
}
11366
11413
},
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
+ },
11367
11441
"VulnerabilityDto" : {
11368
11442
"required" : [
11443
+ " dates" ,
11369
11444
" isActive" ,
11370
11445
" language" ,
11371
11446
" name" ,
11376
11451
],
11377
11452
"type" : " object" ,
11378
11453
"properties" : {
11454
+ "dates" : {
11455
+ "type" : " array" ,
11456
+ "items" : {
11457
+ "$ref" : " #/components/schemas/VulnerabilityDateDto"
11458
+ }
11459
+ },
11379
11460
"description" : {
11380
11461
"type" : " string"
11381
11462
},
11396
11477
"name" : {
11397
11478
"type" : " string"
11398
11479
},
11480
+ "organization" : {
11481
+ "$ref" : " #/components/schemas/OrganizationDto"
11482
+ },
11399
11483
"progress" : {
11400
11484
"type" : " integer" ,
11401
11485
"format" : " int32"
You can’t perform that action at this time.
0 commit comments