Skip to content

Commit

Permalink
feature. change audit api path "/organizations/" to "/admin"
Browse files Browse the repository at this point in the history
  • Loading branch information
ktkfree committed Mar 13, 2024
1 parent ceb699c commit 21b9b03
Show file tree
Hide file tree
Showing 7 changed files with 488 additions and 495 deletions.
360 changes: 180 additions & 180 deletions api/swagger/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,186 @@ const docTemplate = `{
"host": "{{.Host}}",
"basePath": "{{.BasePath}}",
"paths": {
"/admin/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/github_com_openinfradev_tks-api_pkg_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/github_com_openinfradev_tks-api_pkg_domain.CreateAuditRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.CreateAuditResponse"
}
}
}
}
},
"/admin/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/github_com_openinfradev_tks-api_pkg_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"
}
}
}
},
"/admin/organizations/{organizationId}/projects": {
"get": {
"security": [
Expand Down Expand Up @@ -2337,186 +2517,6 @@ 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/github_com_openinfradev_tks-api_pkg_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/github_com_openinfradev_tks-api_pkg_domain.CreateAuditRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_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/github_com_openinfradev_tks-api_pkg_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
Loading

0 comments on commit 21b9b03

Please sign in to comment.