|
4276 | 4276 | ] |
4277 | 4277 | } |
4278 | 4278 | }, |
| 4279 | + "/api/v1/notifications/delete-by-id": { |
| 4280 | + "delete": { |
| 4281 | + "description": "Delete notification by id.", |
| 4282 | + "operationId": "deleteById", |
| 4283 | + "parameters": [ |
| 4284 | + { |
| 4285 | + "in": "query", |
| 4286 | + "name": "id", |
| 4287 | + "required": true, |
| 4288 | + "schema": { |
| 4289 | + "type": "integer", |
| 4290 | + "format": "int64" |
| 4291 | + } |
| 4292 | + } |
| 4293 | + ], |
| 4294 | + "responses": { |
| 4295 | + "200": { |
| 4296 | + "content": { |
| 4297 | + "*/*": { |
| 4298 | + "schema": { |
| 4299 | + "type": "string" |
| 4300 | + } |
| 4301 | + } |
| 4302 | + }, |
| 4303 | + "description": "Successfully deleted notification by id" |
| 4304 | + }, |
| 4305 | + "401": { |
| 4306 | + "content": { |
| 4307 | + "*/*": { |
| 4308 | + "schema": { |
| 4309 | + "type": "string" |
| 4310 | + } |
| 4311 | + } |
| 4312 | + }, |
| 4313 | + "description": "Unauthorized" |
| 4314 | + } |
| 4315 | + }, |
| 4316 | + "security": [ |
| 4317 | + { |
| 4318 | + "basic": [] |
| 4319 | + } |
| 4320 | + ], |
| 4321 | + "summary": "Delete notification by id.", |
| 4322 | + "tags": [ |
| 4323 | + "notifications" |
| 4324 | + ] |
| 4325 | + } |
| 4326 | + }, |
| 4327 | + "/api/v1/notifications/get-all-by-user": { |
| 4328 | + "get": { |
| 4329 | + "description": "Get user notifications.", |
| 4330 | + "operationId": "getAllNotifications", |
| 4331 | + "responses": { |
| 4332 | + "200": { |
| 4333 | + "content": { |
| 4334 | + "*/*": { |
| 4335 | + "schema": { |
| 4336 | + "type": "array", |
| 4337 | + "items": { |
| 4338 | + "$ref": "#/components/schemas/NotificationDto" |
| 4339 | + } |
| 4340 | + } |
| 4341 | + } |
| 4342 | + }, |
| 4343 | + "description": "Successfully fetched all notifications by user name" |
| 4344 | + }, |
| 4345 | + "401": { |
| 4346 | + "content": { |
| 4347 | + "*/*": { |
| 4348 | + "schema": { |
| 4349 | + "type": "array", |
| 4350 | + "items": { |
| 4351 | + "$ref": "#/components/schemas/NotificationDto" |
| 4352 | + } |
| 4353 | + } |
| 4354 | + } |
| 4355 | + }, |
| 4356 | + "description": "Unauthorized" |
| 4357 | + } |
| 4358 | + }, |
| 4359 | + "security": [ |
| 4360 | + { |
| 4361 | + "basic": [] |
| 4362 | + } |
| 4363 | + ], |
| 4364 | + "summary": "Get all notifications by user name.", |
| 4365 | + "tags": [ |
| 4366 | + "notifications" |
| 4367 | + ] |
| 4368 | + } |
| 4369 | + }, |
4279 | 4370 | "/api/v1/organizations/all-by-filters": { |
4280 | 4371 | "post": { |
4281 | 4372 | "description": "Get organizations", |
|
7681 | 7772 | ] |
7682 | 7773 | } |
7683 | 7774 | }, |
| 7775 | + "/api/v1/raw-cosv/{organizationName}/delete-all-duplicated-files": { |
| 7776 | + "delete": { |
| 7777 | + "operationId": "deleteAllDuplicatedFiles", |
| 7778 | + "parameters": [ |
| 7779 | + { |
| 7780 | + "in": "path", |
| 7781 | + "name": "organizationName", |
| 7782 | + "required": true, |
| 7783 | + "schema": { |
| 7784 | + "type": "string" |
| 7785 | + } |
| 7786 | + }, |
| 7787 | + { |
| 7788 | + "example": 123, |
| 7789 | + "in": "header", |
| 7790 | + "name": "X-Authorization-Id", |
| 7791 | + "required": true |
| 7792 | + }, |
| 7793 | + { |
| 7794 | + "example": "user", |
| 7795 | + "in": "header", |
| 7796 | + "name": "X-Authorization-Name", |
| 7797 | + "required": true |
| 7798 | + }, |
| 7799 | + { |
| 7800 | + "example": "VIEWER", |
| 7801 | + "in": "header", |
| 7802 | + "name": "X-Authorization-Roles", |
| 7803 | + "required": true |
| 7804 | + } |
| 7805 | + ], |
| 7806 | + "responses": { |
| 7807 | + "401": { |
| 7808 | + "content": { |
| 7809 | + "*/*": { |
| 7810 | + "schema": { |
| 7811 | + "type": "string" |
| 7812 | + } |
| 7813 | + } |
| 7814 | + }, |
| 7815 | + "description": "Unauthorized" |
| 7816 | + } |
| 7817 | + }, |
| 7818 | + "security": [ |
| 7819 | + { |
| 7820 | + "basic": [] |
| 7821 | + } |
| 7822 | + ], |
| 7823 | + "tags": [ |
| 7824 | + "raw-cosv-file-controller" |
| 7825 | + ] |
| 7826 | + } |
| 7827 | + }, |
7684 | 7828 | "/api/v1/raw-cosv/{organizationName}/delete/{id}": { |
7685 | 7829 | "delete": { |
7686 | 7830 | "operationId": "delete_1", |
|
8019 | 8163 | ] |
8020 | 8164 | } |
8021 | 8165 | }, |
8022 | | - "/api/v1/raw-cosv/{organizationName}/submit-to-process": { |
8023 | | - "post": { |
8024 | | - "operationId": "submitToProcess", |
8025 | | - "parameters": [ |
8026 | | - { |
8027 | | - "in": "path", |
8028 | | - "name": "organizationName", |
8029 | | - "required": true, |
8030 | | - "schema": { |
8031 | | - "type": "string" |
8032 | | - } |
8033 | | - }, |
8034 | | - { |
8035 | | - "example": 123, |
8036 | | - "in": "header", |
8037 | | - "name": "X-Authorization-Id", |
8038 | | - "required": true |
8039 | | - }, |
8040 | | - { |
8041 | | - "example": "user", |
8042 | | - "in": "header", |
8043 | | - "name": "X-Authorization-Name", |
8044 | | - "required": true |
8045 | | - }, |
8046 | | - { |
8047 | | - "example": "VIEWER", |
8048 | | - "in": "header", |
8049 | | - "name": "X-Authorization-Roles", |
8050 | | - "required": true |
8051 | | - } |
8052 | | - ], |
8053 | | - "requestBody": { |
8054 | | - "content": { |
8055 | | - "application/json": { |
8056 | | - "schema": { |
8057 | | - "type": "array", |
8058 | | - "items": { |
8059 | | - "type": "integer", |
8060 | | - "format": "int64" |
8061 | | - } |
8062 | | - } |
8063 | | - } |
8064 | | - }, |
8065 | | - "required": true |
8066 | | - }, |
8067 | | - "responses": { |
8068 | | - "401": { |
8069 | | - "content": { |
8070 | | - "*/*": { |
8071 | | - "schema": { |
8072 | | - "type": "string" |
8073 | | - } |
8074 | | - } |
8075 | | - }, |
8076 | | - "description": "Unauthorized" |
8077 | | - } |
8078 | | - }, |
8079 | | - "security": [ |
8080 | | - { |
8081 | | - "basic": [] |
8082 | | - } |
8083 | | - ], |
8084 | | - "tags": [ |
8085 | | - "raw-cosv-file-controller" |
8086 | | - ] |
8087 | | - } |
8088 | | - }, |
8089 | 8166 | "/api/v1/raw-cosv/{organizationName}/unzip/{id}": { |
8090 | 8167 | "post": { |
8091 | 8168 | "operationId": "unzip", |
|
11222 | 11299 | "content": { |
11223 | 11300 | "*/*": { |
11224 | 11301 | "schema": { |
11225 | | - "$ref": "#/components/schemas/VulnerabilityDto" |
| 11302 | + "$ref": "#/components/schemas/VulnerabilityMetadataDto" |
11226 | 11303 | } |
11227 | 11304 | } |
11228 | 11305 | }, |
|
11232 | 11309 | "content": { |
11233 | 11310 | "*/*": { |
11234 | 11311 | "schema": { |
11235 | | - "$ref": "#/components/schemas/VulnerabilityDto" |
| 11312 | + "$ref": "#/components/schemas/VulnerabilityMetadataDto" |
11236 | 11313 | } |
11237 | 11314 | } |
11238 | 11315 | }, |
|
13269 | 13346 | } |
13270 | 13347 | } |
13271 | 13348 | }, |
| 13349 | + "NotificationDto": { |
| 13350 | + "required": [ |
| 13351 | + "id", |
| 13352 | + "message" |
| 13353 | + ], |
| 13354 | + "type": "object", |
| 13355 | + "properties": { |
| 13356 | + "createDate": { |
| 13357 | + "$ref": "#/components/schemas/LocalDateTime" |
| 13358 | + }, |
| 13359 | + "id": { |
| 13360 | + "type": "integer", |
| 13361 | + "format": "int64" |
| 13362 | + }, |
| 13363 | + "message": { |
| 13364 | + "type": "string" |
| 13365 | + } |
| 13366 | + } |
| 13367 | + }, |
13272 | 13368 | "Organization": { |
13273 | 13369 | "required": [ |
13274 | 13370 | "canBulkUpload", |
@@ -15001,114 +15097,6 @@ |
15001 | 15097 | } |
15002 | 15098 | } |
15003 | 15099 | }, |
15004 | | - "VulnerabilityDto": { |
15005 | | - "required": [ |
15006 | | - "allParticipants", |
15007 | | - "dates", |
15008 | | - "identifier", |
15009 | | - "language", |
15010 | | - "participants", |
15011 | | - "progress", |
15012 | | - "projects", |
15013 | | - "severity", |
15014 | | - "shortDescription", |
15015 | | - "status", |
15016 | | - "tags", |
15017 | | - "userInfo" |
15018 | | - ], |
15019 | | - "type": "object", |
15020 | | - "properties": { |
15021 | | - "allParticipants": { |
15022 | | - "type": "array", |
15023 | | - "items": { |
15024 | | - "$ref": "#/components/schemas/UserInfo" |
15025 | | - } |
15026 | | - }, |
15027 | | - "creationDateTime": { |
15028 | | - "$ref": "#/components/schemas/LocalDateTime" |
15029 | | - }, |
15030 | | - "dates": { |
15031 | | - "type": "array", |
15032 | | - "items": { |
15033 | | - "$ref": "#/components/schemas/VulnerabilityDateDto" |
15034 | | - } |
15035 | | - }, |
15036 | | - "description": { |
15037 | | - "type": "string" |
15038 | | - }, |
15039 | | - "identifier": { |
15040 | | - "type": "string" |
15041 | | - }, |
15042 | | - "language": { |
15043 | | - "type": "string", |
15044 | | - "enum": [ |
15045 | | - "C", |
15046 | | - "C++", |
15047 | | - "C#", |
15048 | | - "Go", |
15049 | | - "Java", |
15050 | | - "JavaScript", |
15051 | | - "Kotlin", |
15052 | | - "Other", |
15053 | | - "PHP", |
15054 | | - "Python", |
15055 | | - "Rust", |
15056 | | - "Sql", |
15057 | | - "TypeScript" |
15058 | | - ] |
15059 | | - }, |
15060 | | - "lastUpdatedDateTime": { |
15061 | | - "$ref": "#/components/schemas/LocalDateTime" |
15062 | | - }, |
15063 | | - "organization": { |
15064 | | - "$ref": "#/components/schemas/OrganizationDto" |
15065 | | - }, |
15066 | | - "participants": { |
15067 | | - "type": "array", |
15068 | | - "items": { |
15069 | | - "$ref": "#/components/schemas/UserInfo" |
15070 | | - } |
15071 | | - }, |
15072 | | - "progress": { |
15073 | | - "type": "number", |
15074 | | - "format": "float" |
15075 | | - }, |
15076 | | - "projects": { |
15077 | | - "type": "array", |
15078 | | - "items": { |
15079 | | - "$ref": "#/components/schemas/VulnerabilityProjectDto" |
15080 | | - } |
15081 | | - }, |
15082 | | - "relatedLink": { |
15083 | | - "type": "string" |
15084 | | - }, |
15085 | | - "severity": { |
15086 | | - "type": "string" |
15087 | | - }, |
15088 | | - "shortDescription": { |
15089 | | - "type": "string" |
15090 | | - }, |
15091 | | - "status": { |
15092 | | - "type": "string", |
15093 | | - "enum": [ |
15094 | | - "APPROVED", |
15095 | | - "AUTO_APPROVED", |
15096 | | - "PENDING_REVIEW", |
15097 | | - "REJECTED" |
15098 | | - ] |
15099 | | - }, |
15100 | | - "tags": { |
15101 | | - "uniqueItems": true, |
15102 | | - "type": "array", |
15103 | | - "items": { |
15104 | | - "type": "string" |
15105 | | - } |
15106 | | - }, |
15107 | | - "userInfo": { |
15108 | | - "$ref": "#/components/schemas/UserInfo" |
15109 | | - } |
15110 | | - } |
15111 | | - }, |
15112 | 15100 | "VulnerabilityExt": { |
15113 | 15101 | "required": [ |
15114 | 15102 | "allParticipants", |
|
0 commit comments