Skip to content

Commit

Permalink
Merge branch 'develop' into project_k8s_info
Browse files Browse the repository at this point in the history
  • Loading branch information
ktkfree authored Feb 26, 2024
2 parents 82b42c4 + d44ad7f commit 9c0a525
Show file tree
Hide file tree
Showing 25 changed files with 1,411 additions and 72 deletions.
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 @@ -5685,6 +5865,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 @@ -6337,6 +6555,12 @@ const docTemplate = `{
}
}
},
"domain.CreateAuditRequest": {
"type": "object"
},
"domain.CreateAuditResponse": {
"type": "object"
},
"domain.CreateBootstrapKubeconfigResponse": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -7006,6 +7230,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 @@ -8021,6 +8267,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 @@ -8064,6 +8338,9 @@ const docTemplate = `{
},
"name": {
"type": "string"
},
"role": {
"$ref": "#/definitions/domain.SimpleRoleResponse"
}
}
},
Expand Down
Loading

0 comments on commit 9c0a525

Please sign in to comment.