Skip to content

Commit

Permalink
Merge pull request #293 from openinfradev/organization_change_apirole
Browse files Browse the repository at this point in the history
trivial. change api role for organizations
  • Loading branch information
ktkfree authored Mar 20, 2024
2 parents 3cc8c74 + 786291c commit 63e94e6
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 352 deletions.
118 changes: 17 additions & 101 deletions api/swagger/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,52 +202,6 @@ const docTemplate = `{
}
}
},
"/admin/organizations/{organizationId}": {
"put": {
"security": [
{
"JWT": []
}
],
"description": "Update organization detail ( for admin )",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Organizations"
],
"summary": "Update organization detail ( for admin )",
"parameters": [
{
"type": "string",
"description": "organizationId",
"name": "organizationId",
"in": "path",
"required": true
},
{
"description": "update organization request",
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.Admin_UpdateOrganizationRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.Admin_UpdateOrganizationResponse"
}
}
}
}
},
"/admin/organizations/{organizationId}/projects": {
"get": {
"security": [
Expand Down Expand Up @@ -7395,53 +7349,6 @@ const docTemplate = `{
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.Admin_UpdateOrganizationRequest": {
"type": "object",
"required": [
"name"
],
"properties": {
"description": {
"type": "string",
"maxLength": 100,
"minLength": 0
},
"name": {
"type": "string",
"maxLength": 30,
"minLength": 1
},
"policyTemplateIds": {
"type": "array",
"items": {
"type": "string"
}
},
"primaryClusterId": {
"type": "string"
},
"stackTemplateIds": {
"type": "array",
"items": {
"type": "string"
}
},
"systemNotificationTemplateIds": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.Admin_UpdateOrganizationResponse": {
"type": "object",
"properties": {
"id": {
"type": "string"
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.AppGroupResponse": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -11276,22 +11183,31 @@ const docTemplate = `{
"maxLength": 30,
"minLength": 1
},
"primaryClusterId": {
"type": "string"
"policyTemplateIds": {
"type": "array",
"items": {
"type": "string"
}
},
"stackTemplateIds": {
"type": "array",
"items": {
"type": "string"
}
},
"systemNotificationTemplateIds": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.UpdateOrganizationResponse": {
"type": "object",
"properties": {
"description": {
"type": "string"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
Expand Down
118 changes: 17 additions & 101 deletions api/swagger/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,52 +196,6 @@
}
}
},
"/admin/organizations/{organizationId}": {
"put": {
"security": [
{
"JWT": []
}
],
"description": "Update organization detail ( for admin )",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Organizations"
],
"summary": "Update organization detail ( for admin )",
"parameters": [
{
"type": "string",
"description": "organizationId",
"name": "organizationId",
"in": "path",
"required": true
},
{
"description": "update organization request",
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.Admin_UpdateOrganizationRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.Admin_UpdateOrganizationResponse"
}
}
}
}
},
"/admin/organizations/{organizationId}/projects": {
"get": {
"security": [
Expand Down Expand Up @@ -7389,53 +7343,6 @@
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.Admin_UpdateOrganizationRequest": {
"type": "object",
"required": [
"name"
],
"properties": {
"description": {
"type": "string",
"maxLength": 100,
"minLength": 0
},
"name": {
"type": "string",
"maxLength": 30,
"minLength": 1
},
"policyTemplateIds": {
"type": "array",
"items": {
"type": "string"
}
},
"primaryClusterId": {
"type": "string"
},
"stackTemplateIds": {
"type": "array",
"items": {
"type": "string"
}
},
"systemNotificationTemplateIds": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.Admin_UpdateOrganizationResponse": {
"type": "object",
"properties": {
"id": {
"type": "string"
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.AppGroupResponse": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -11270,22 +11177,31 @@
"maxLength": 30,
"minLength": 1
},
"primaryClusterId": {
"type": "string"
"policyTemplateIds": {
"type": "array",
"items": {
"type": "string"
}
},
"stackTemplateIds": {
"type": "array",
"items": {
"type": "string"
}
},
"systemNotificationTemplateIds": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.UpdateOrganizationResponse": {
"type": "object",
"properties": {
"description": {
"type": "string"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
Expand Down
Loading

0 comments on commit 63e94e6

Please sign in to comment.