Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI add org account tab #1544

Merged
merged 2 commits into from
Sep 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
345 changes: 342 additions & 3 deletions deepfence_frontend/apps/dashboard/api-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -1109,6 +1109,276 @@
"security": [{ "bearer_token": [] }]
}
},
"/deepfence/diff-add/cloud-compliance": {
"post": {
"tags": ["Diff Add"],
"summary": "Get Cloud Compliance Diff",
"description": "Get Cloud Compliance Diff between two scans",
"operationId": "diffAddCloudCompliance",
"requestBody": {
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ModelScanCompareReq" }
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ModelScanCompareResGithubComDeepfenceThreatMapperDeepfenceServerModelCloudCompliance"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ApiDocsBadRequestResponse" }
}
}
},
"401": { "description": "Unauthorized" },
"403": { "description": "Forbidden" },
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ApiDocsFailureResponse" }
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ApiDocsFailureResponse" }
}
}
}
},
"security": [{ "bearer_token": [] }]
}
},
"/deepfence/diff-add/compliance": {
"post": {
"tags": ["Diff Add"],
"summary": "Get Compliance Diff",
"description": "Get Compliance Diff between two scans",
"operationId": "diffAddCompliance",
"requestBody": {
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ModelScanCompareReq" }
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ModelScanCompareResGithubComDeepfenceThreatMapperDeepfenceServerModelCompliance"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ApiDocsBadRequestResponse" }
}
}
},
"401": { "description": "Unauthorized" },
"403": { "description": "Forbidden" },
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ApiDocsFailureResponse" }
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ApiDocsFailureResponse" }
}
}
}
},
"security": [{ "bearer_token": [] }]
}
},
"/deepfence/diff-add/malware": {
"post": {
"tags": ["Diff Add"],
"summary": "Get Malware Diff",
"description": "Get Malware Diff between two scans",
"operationId": "diffAddMalware",
"requestBody": {
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ModelScanCompareReq" }
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ModelScanCompareResGithubComDeepfenceThreatMapperDeepfenceServerModelMalware"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ApiDocsBadRequestResponse" }
}
}
},
"401": { "description": "Unauthorized" },
"403": { "description": "Forbidden" },
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ApiDocsFailureResponse" }
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ApiDocsFailureResponse" }
}
}
}
},
"security": [{ "bearer_token": [] }]
}
},
"/deepfence/diff-add/secret": {
"post": {
"tags": ["Diff Add"],
"summary": "Get Secret Diff",
"description": "Get Secret Diff between two scans",
"operationId": "diffAddSecret",
"requestBody": {
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ModelScanCompareReq" }
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ModelScanCompareResGithubComDeepfenceThreatMapperDeepfenceServerModelSecret"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ApiDocsBadRequestResponse" }
}
}
},
"401": { "description": "Unauthorized" },
"403": { "description": "Forbidden" },
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ApiDocsFailureResponse" }
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ApiDocsFailureResponse" }
}
}
}
},
"security": [{ "bearer_token": [] }]
}
},
"/deepfence/diff-add/vulnerability": {
"post": {
"tags": ["Diff Add"],
"summary": "Get Vulnerability Diff",
"description": "Get Vulnerability Diff between two scans",
"operationId": "diffAddVulnerability",
"requestBody": {
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ModelScanCompareReq" }
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ModelScanCompareResGithubComDeepfenceThreatMapperDeepfenceServerModelVulnerability"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ApiDocsBadRequestResponse" }
}
}
},
"401": { "description": "Unauthorized" },
"403": { "description": "Forbidden" },
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ApiDocsFailureResponse" }
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ApiDocsFailureResponse" }
}
}
}
},
"security": [{ "bearer_token": [] }]
}
},
"/deepfence/end-user-license-agreement": {
"get": {
"tags": ["Common"],
Expand Down Expand Up @@ -6025,7 +6295,7 @@
}
},
"responses": {
"200": { "description": "OK" },
"202": { "description": "Accepted" },
"400": {
"description": "Bad Request",
"content": {
Expand Down Expand Up @@ -6070,7 +6340,7 @@
}
},
"responses": {
"200": { "description": "OK" },
"202": { "description": "Accepted" },
"400": {
"description": "Bad Request",
"content": {
Expand Down Expand Up @@ -10751,6 +11021,11 @@
"last_scan_status": { "type": "string" },
"node_id": { "type": "string" },
"node_name": { "type": "string" },
"scan_status_map": {
"type": "object",
"additionalProperties": { "type": "integer" },
"nullable": true
},
"version": { "type": "string" }
}
},
Expand Down Expand Up @@ -11176,7 +11451,6 @@
"docker_image_virtual_size",
"docker_image_id",
"docker_image_tag_list",
"metadata",
"vulnerabilities_count",
"vulnerability_scan_status",
"vulnerability_latest_scan_id",
Expand Down Expand Up @@ -11927,6 +12201,71 @@
"version": { "type": "string" }
}
},
"ModelScanCompareReq": {
"required": ["base_scan_id", "to_scan_id", "fields_filter", "window"],
"type": "object",
"properties": {
"base_scan_id": { "type": "string" },
"fields_filter": { "$ref": "#/components/schemas/ReportersFieldsFilters" },
"to_scan_id": { "type": "string" },
"window": { "$ref": "#/components/schemas/ModelFetchWindow" }
}
},
"ModelScanCompareResGithubComDeepfenceThreatMapperDeepfenceServerModelCloudCompliance": {
"required": ["new"],
"type": "object",
"properties": {
"new": {
"type": "array",
"items": { "$ref": "#/components/schemas/ModelCloudCompliance" },
"nullable": true
}
}
},
"ModelScanCompareResGithubComDeepfenceThreatMapperDeepfenceServerModelCompliance": {
"required": ["new"],
"type": "object",
"properties": {
"new": {
"type": "array",
"items": { "$ref": "#/components/schemas/ModelCompliance" },
"nullable": true
}
}
},
"ModelScanCompareResGithubComDeepfenceThreatMapperDeepfenceServerModelMalware": {
"required": ["new"],
"type": "object",
"properties": {
"new": {
"type": "array",
"items": { "$ref": "#/components/schemas/ModelMalware" },
"nullable": true
}
}
},
"ModelScanCompareResGithubComDeepfenceThreatMapperDeepfenceServerModelSecret": {
"required": ["new"],
"type": "object",
"properties": {
"new": {
"type": "array",
"items": { "$ref": "#/components/schemas/ModelSecret" },
"nullable": true
}
}
},
"ModelScanCompareResGithubComDeepfenceThreatMapperDeepfenceServerModelVulnerability": {
"required": ["new"],
"type": "object",
"properties": {
"new": {
"type": "array",
"items": { "$ref": "#/components/schemas/ModelVulnerability" },
"nullable": true
}
}
},
"ModelScanFilter": {
"required": [
"image_scan_filter",
Expand Down
Loading