Skip to content

Commit

Permalink
feature. add templates mapping for organization
Browse files Browse the repository at this point in the history
  • Loading branch information
ktkfree committed Mar 19, 2024
1 parent 1704ca5 commit 76e0548
Show file tree
Hide file tree
Showing 38 changed files with 645 additions and 201 deletions.
136 changes: 127 additions & 9 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 @@ -10551,9 +10675,6 @@ const docTemplate = `{
"maxLength": 30,
"minLength": 1
},
"phone": {
"type": "string"
},
"primaryClusterId": {
"type": "string"
}
Expand All @@ -10570,9 +10691,6 @@ const docTemplate = `{
},
"name": {
"type": "string"
},
"phone": {
"type": "string"
}
}
},
Expand Down
136 changes: 127 additions & 9 deletions api/swagger/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,52 @@
}
}
},
"/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 @@ -2172,6 +2218,40 @@
}
}
},
"/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 @@ -6913,6 +6993,53 @@
}
}
},
"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 @@ -9264,9 +9391,6 @@
"name": {
"type": "string"
},
"phone": {
"type": "string"
},
"policyTemplates": {
"type": "array",
"items": {
Expand Down Expand Up @@ -10545,9 +10669,6 @@
"maxLength": 30,
"minLength": 1
},
"phone": {
"type": "string"
},
"primaryClusterId": {
"type": "string"
}
Expand All @@ -10564,9 +10685,6 @@
},
"name": {
"type": "string"
},
"phone": {
"type": "string"
}
}
},
Expand Down
Loading

0 comments on commit 76e0548

Please sign in to comment.