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

feature. implemtation audit #244

Merged
merged 2 commits into from
Feb 26, 2024
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
277 changes: 277 additions & 0 deletions api/swagger/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1357,6 +1357,186 @@ const docTemplate = `{
}
}
},
"/organizations/{organizationId}/audits": {
"get": {
"security": [
{
"JWT": []
}
],
"description": "Get Audits",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Audits"
],
"summary": "Get Audits",
"parameters": [
{
"type": "string",
"description": "pageSize",
"name": "limit",
"in": "query"
},
{
"type": "string",
"description": "pageNumber",
"name": "page",
"in": "query"
},
{
"type": "string",
"description": "sortColumn",
"name": "soertColumn",
"in": "query"
},
{
"type": "string",
"description": "sortOrder",
"name": "sortOrder",
"in": "query"
},
{
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "csv",
"description": "filters",
"name": "filter",
"in": "query"
},
{
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "csv",
"description": "filters",
"name": "or",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/domain.GetAuditsResponse"
}
}
}
},
"post": {
"security": [
{
"JWT": []
}
],
"description": "Create Audit",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Audits"
],
"summary": "Create Audit",
"parameters": [
{
"description": "create audit request",
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/domain.CreateAuditRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/domain.CreateAuditResponse"
}
}
}
}
},
"/organizations/{organizationId}/audits/{auditId}": {
"get": {
"security": [
{
"JWT": []
}
],
"description": "Get Audit",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Audits"
],
"summary": "Get Audit",
"parameters": [
{
"type": "string",
"description": "auditId",
"name": "auditId",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/domain.GetAuditResponse"
}
}
}
},
"delete": {
"security": [
{
"JWT": []
}
],
"description": "Delete Audit",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Audits"
],
"summary": "Delete Audit 'NOT IMPLEMENTED'",
"parameters": [
{
"type": "string",
"description": "auditId",
"name": "auditId",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/organizations/{organizationId}/cloud-accounts": {
"get": {
"security": [
Expand Down Expand Up @@ -5627,6 +5807,44 @@ const docTemplate = `{
"ApplicationType_KUBERNETES_DASHBOARD"
]
},
"domain.AuditResponse": {
"type": "object",
"properties": {
"clientIP": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"description": {
"type": "string"
},
"group": {
"type": "string"
},
"id": {
"type": "string"
},
"message": {
"type": "string"
},
"organization": {
"$ref": "#/definitions/domain.SimpleOrganizationResponse"
},
"organizationId": {
"type": "string"
},
"updatedAt": {
"type": "string"
},
"user": {
"$ref": "#/definitions/domain.SimpleUserResponse"
},
"userId": {
"type": "string"
}
}
},
"domain.Axis": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -6279,6 +6497,12 @@ const docTemplate = `{
}
}
},
"domain.CreateAuditRequest": {
"type": "object"
},
"domain.CreateAuditResponse": {
"type": "object"
},
"domain.CreateBootstrapKubeconfigResponse": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -6948,6 +7172,28 @@ const docTemplate = `{
}
}
},
"domain.GetAuditResponse": {
"type": "object",
"properties": {
"audit": {
"$ref": "#/definitions/domain.AuditResponse"
}
}
},
"domain.GetAuditsResponse": {
"type": "object",
"properties": {
"audits": {
"type": "array",
"items": {
"$ref": "#/definitions/domain.AuditResponse"
}
},
"pagination": {
"$ref": "#/definitions/domain.PaginationResponse"
}
}
},
"domain.GetBootstrapKubeconfigResponse": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -7923,6 +8169,34 @@ const docTemplate = `{
}
}
},
"domain.SimpleOrganizationResponse": {
"type": "object",
"properties": {
"description": {
"type": "string"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"domain.SimpleRoleResponse": {
"type": "object",
"properties": {
"description": {
"type": "string"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"domain.SimpleStackTemplateResponse": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -7966,6 +8240,9 @@ const docTemplate = `{
},
"name": {
"type": "string"
},
"role": {
"$ref": "#/definitions/domain.SimpleRoleResponse"
}
}
},
Expand Down
Loading
Loading