Skip to content

Commit

Permalink
Merge pull request #287 from openinfradev/organization_fix
Browse files Browse the repository at this point in the history
feature. add templates mapping for organization
  • Loading branch information
cho4036 authored Mar 19, 2024
2 parents 1704ca5 + 73ae875 commit f6ee6b2
Show file tree
Hide file tree
Showing 39 changed files with 672 additions and 206 deletions.
146 changes: 136 additions & 10 deletions api/swagger/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,52 @@ 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 @@ -2178,6 +2224,40 @@ const docTemplate = `{
}
}
},
"/organizations/name/{name}/existence": {
"get": {
"security": [
{
"JWT": []
}
],
"description": "Check name for organization",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Organizations"
],
"summary": "Check name for organization",
"parameters": [
{
"type": "string",
"description": "name",
"name": "name",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/organizations/{organizationId}": {
"get": {
"security": [
Expand Down Expand Up @@ -6919,6 +6999,53 @@ 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 @@ -9270,9 +9397,6 @@ const docTemplate = `{
"name": {
"type": "string"
},
"phone": {
"type": "string"
},
"policyTemplates": {
"type": "array",
"items": {
Expand Down Expand Up @@ -10028,14 +10152,22 @@ const docTemplate = `{
"services": {
"type": "array",
"items": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.StackTemplateServiceResponse"
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.SimpleStackTemplateServiceResponse"
}
},
"template": {
"type": "string"
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.SimpleStackTemplateServiceResponse": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.SimpleUserResponse": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -10551,9 +10683,6 @@ const docTemplate = `{
"maxLength": 30,
"minLength": 1
},
"phone": {
"type": "string"
},
"primaryClusterId": {
"type": "string"
}
Expand All @@ -10570,9 +10699,6 @@ const docTemplate = `{
},
"name": {
"type": "string"
},
"phone": {
"type": "string"
}
}
},
Expand Down
Loading

0 comments on commit f6ee6b2

Please sign in to comment.