Skip to content

Commit

Permalink
Update backend-api-docs.json (#2821)
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 30, 2023
1 parent d960424 commit 569210f
Showing 1 changed file with 165 additions and 177 deletions.
342 changes: 165 additions & 177 deletions save-backend/backend-api-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -4276,6 +4276,97 @@
]
}
},
"/api/v1/notifications/delete-by-id": {
"delete": {
"description": "Delete notification by id.",
"operationId": "deleteById",
"parameters": [
{
"in": "query",
"name": "id",
"required": true,
"schema": {
"type": "integer",
"format": "int64"
}
}
],
"responses": {
"200": {
"content": {
"*/*": {
"schema": {
"type": "string"
}
}
},
"description": "Successfully deleted notification by id"
},
"401": {
"content": {
"*/*": {
"schema": {
"type": "string"
}
}
},
"description": "Unauthorized"
}
},
"security": [
{
"basic": []
}
],
"summary": "Delete notification by id.",
"tags": [
"notifications"
]
}
},
"/api/v1/notifications/get-all-by-user": {
"get": {
"description": "Get user notifications.",
"operationId": "getAllNotifications",
"responses": {
"200": {
"content": {
"*/*": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/NotificationDto"
}
}
}
},
"description": "Successfully fetched all notifications by user name"
},
"401": {
"content": {
"*/*": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/NotificationDto"
}
}
}
},
"description": "Unauthorized"
}
},
"security": [
{
"basic": []
}
],
"summary": "Get all notifications by user name.",
"tags": [
"notifications"
]
}
},
"/api/v1/organizations/all-by-filters": {
"post": {
"description": "Get organizations",
Expand Down Expand Up @@ -7681,6 +7772,59 @@
]
}
},
"/api/v1/raw-cosv/{organizationName}/delete-all-duplicated-files": {
"delete": {
"operationId": "deleteAllDuplicatedFiles",
"parameters": [
{
"in": "path",
"name": "organizationName",
"required": true,
"schema": {
"type": "string"
}
},
{
"example": 123,
"in": "header",
"name": "X-Authorization-Id",
"required": true
},
{
"example": "user",
"in": "header",
"name": "X-Authorization-Name",
"required": true
},
{
"example": "VIEWER",
"in": "header",
"name": "X-Authorization-Roles",
"required": true
}
],
"responses": {
"401": {
"content": {
"*/*": {
"schema": {
"type": "string"
}
}
},
"description": "Unauthorized"
}
},
"security": [
{
"basic": []
}
],
"tags": [
"raw-cosv-file-controller"
]
}
},
"/api/v1/raw-cosv/{organizationName}/delete/{id}": {
"delete": {
"operationId": "delete_1",
Expand Down Expand Up @@ -8019,73 +8163,6 @@
]
}
},
"/api/v1/raw-cosv/{organizationName}/submit-to-process": {
"post": {
"operationId": "submitToProcess",
"parameters": [
{
"in": "path",
"name": "organizationName",
"required": true,
"schema": {
"type": "string"
}
},
{
"example": 123,
"in": "header",
"name": "X-Authorization-Id",
"required": true
},
{
"example": "user",
"in": "header",
"name": "X-Authorization-Name",
"required": true
},
{
"example": "VIEWER",
"in": "header",
"name": "X-Authorization-Roles",
"required": true
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"type": "integer",
"format": "int64"
}
}
}
},
"required": true
},
"responses": {
"401": {
"content": {
"*/*": {
"schema": {
"type": "string"
}
}
},
"description": "Unauthorized"
}
},
"security": [
{
"basic": []
}
],
"tags": [
"raw-cosv-file-controller"
]
}
},
"/api/v1/raw-cosv/{organizationName}/unzip/{id}": {
"post": {
"operationId": "unzip",
Expand Down Expand Up @@ -11222,7 +11299,7 @@
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/VulnerabilityDto"
"$ref": "#/components/schemas/VulnerabilityMetadataDto"
}
}
},
Expand All @@ -11232,7 +11309,7 @@
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/VulnerabilityDto"
"$ref": "#/components/schemas/VulnerabilityMetadataDto"
}
}
},
Expand Down Expand Up @@ -13269,6 +13346,25 @@
}
}
},
"NotificationDto": {
"required": [
"id",
"message"
],
"type": "object",
"properties": {
"createDate": {
"$ref": "#/components/schemas/LocalDateTime"
},
"id": {
"type": "integer",
"format": "int64"
},
"message": {
"type": "string"
}
}
},
"Organization": {
"required": [
"canBulkUpload",
Expand Down Expand Up @@ -15001,114 +15097,6 @@
}
}
},
"VulnerabilityDto": {
"required": [
"allParticipants",
"dates",
"identifier",
"language",
"participants",
"progress",
"projects",
"severity",
"shortDescription",
"status",
"tags",
"userInfo"
],
"type": "object",
"properties": {
"allParticipants": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UserInfo"
}
},
"creationDateTime": {
"$ref": "#/components/schemas/LocalDateTime"
},
"dates": {
"type": "array",
"items": {
"$ref": "#/components/schemas/VulnerabilityDateDto"
}
},
"description": {
"type": "string"
},
"identifier": {
"type": "string"
},
"language": {
"type": "string",
"enum": [
"C",
"C++",
"C#",
"Go",
"Java",
"JavaScript",
"Kotlin",
"Other",
"PHP",
"Python",
"Rust",
"Sql",
"TypeScript"
]
},
"lastUpdatedDateTime": {
"$ref": "#/components/schemas/LocalDateTime"
},
"organization": {
"$ref": "#/components/schemas/OrganizationDto"
},
"participants": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UserInfo"
}
},
"progress": {
"type": "number",
"format": "float"
},
"projects": {
"type": "array",
"items": {
"$ref": "#/components/schemas/VulnerabilityProjectDto"
}
},
"relatedLink": {
"type": "string"
},
"severity": {
"type": "string"
},
"shortDescription": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"APPROVED",
"AUTO_APPROVED",
"PENDING_REVIEW",
"REJECTED"
]
},
"tags": {
"uniqueItems": true,
"type": "array",
"items": {
"type": "string"
}
},
"userInfo": {
"$ref": "#/components/schemas/UserInfo"
}
}
},
"VulnerabilityExt": {
"required": [
"allParticipants",
Expand Down

0 comments on commit 569210f

Please sign in to comment.