Skip to content

Commit

Permalink
Merge pull request #49 from seungkyua/20230511_check_dup_name
Browse files Browse the repository at this point in the history
check duplicate appName
  • Loading branch information
seungkyua authored May 11, 2023
2 parents 0bcd9ae + 6864f28 commit 8538c38
Show file tree
Hide file tree
Showing 7 changed files with 319 additions and 78 deletions.
113 changes: 85 additions & 28 deletions api/swagger/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1135,6 +1135,91 @@ const docTemplate = `{
}
}
},
"/organizations/{organizationId}/app-serve-apps/app-id/exist": {
"get": {
"security": [
{
"JWT": []
}
],
"description": "Get appServeApp by giving params",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"AppServeApps"
],
"summary": "Get appServeApp",
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "boolean"
}
}
}
}
},
"/organizations/{organizationId}/app-serve-apps/app-name/exist": {
"get": {
"security": [
{
"JWT": []
}
],
"description": "Check duplicate appServeAppName by giving params",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"AppServeApps"
],
"summary": "Check duplicate appServeAppName",
"parameters": [
{
"type": "string",
"description": "organizationId",
"name": "organizationId",
"in": "path",
"required": true
},
{
"type": "string",
"description": "clusterId",
"name": "clusterId",
"in": "query",
"required": true
},
{
"type": "string",
"description": "appName",
"name": "appName",
"in": "query",
"required": true
},
{
"type": "string",
"description": "namespace",
"name": "namespace",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "boolean"
}
}
}
}
},
"/organizations/{organizationId}/app-serve-apps/{appId}": {
"get": {
"security": [
Expand Down Expand Up @@ -1283,34 +1368,6 @@ const docTemplate = `{
}
}
},
"/organizations/{organizationId}/app-serve-apps/{appId}/exist": {
"get": {
"security": [
{
"JWT": []
}
],
"description": "Get appServeApp by giving params",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"AppServeApps"
],
"summary": "Get appServeApp",
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "boolean"
}
}
}
}
},
"/organizations/{organizationId}/app-serve-apps/{appId}/rollback": {
"post": {
"security": [
Expand Down
113 changes: 85 additions & 28 deletions api/swagger/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1128,6 +1128,91 @@
}
}
},
"/organizations/{organizationId}/app-serve-apps/app-id/exist": {
"get": {
"security": [
{
"JWT": []
}
],
"description": "Get appServeApp by giving params",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"AppServeApps"
],
"summary": "Get appServeApp",
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "boolean"
}
}
}
}
},
"/organizations/{organizationId}/app-serve-apps/app-name/exist": {
"get": {
"security": [
{
"JWT": []
}
],
"description": "Check duplicate appServeAppName by giving params",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"AppServeApps"
],
"summary": "Check duplicate appServeAppName",
"parameters": [
{
"type": "string",
"description": "organizationId",
"name": "organizationId",
"in": "path",
"required": true
},
{
"type": "string",
"description": "clusterId",
"name": "clusterId",
"in": "query",
"required": true
},
{
"type": "string",
"description": "appName",
"name": "appName",
"in": "query",
"required": true
},
{
"type": "string",
"description": "namespace",
"name": "namespace",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "boolean"
}
}
}
}
},
"/organizations/{organizationId}/app-serve-apps/{appId}": {
"get": {
"security": [
Expand Down Expand Up @@ -1276,34 +1361,6 @@
}
}
},
"/organizations/{organizationId}/app-serve-apps/{appId}/exist": {
"get": {
"security": [
{
"JWT": []
}
],
"description": "Get appServeApp by giving params",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"AppServeApps"
],
"summary": "Get appServeApp",
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "boolean"
}
}
}
}
},
"/organizations/{organizationId}/app-serve-apps/{appId}/rollback": {
"post": {
"security": [
Expand Down
71 changes: 54 additions & 17 deletions api/swagger/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2484,23 +2484,6 @@ paths:
summary: Update app endpoint
tags:
- AppServeApps
/organizations/{organizationId}/app-serve-apps/{appId}/exist:
get:
consumes:
- application/json
description: Get appServeApp by giving params
produces:
- application/json
responses:
"200":
description: OK
schema:
type: boolean
security:
- JWT: []
summary: Get appServeApp
tags:
- AppServeApps
/organizations/{organizationId}/app-serve-apps/{appId}/rollback:
post:
consumes:
Expand Down Expand Up @@ -2554,6 +2537,60 @@ paths:
summary: Update app status
tags:
- AppServeApps
/organizations/{organizationId}/app-serve-apps/app-id/exist:
get:
consumes:
- application/json
description: Get appServeApp by giving params
produces:
- application/json
responses:
"200":
description: OK
schema:
type: boolean
security:
- JWT: []
summary: Get appServeApp
tags:
- AppServeApps
/organizations/{organizationId}/app-serve-apps/app-name/exist:
get:
consumes:
- application/json
description: Check duplicate appServeAppName by giving params
parameters:
- description: organizationId
in: path
name: organizationId
required: true
type: string
- description: clusterId
in: query
name: clusterId
required: true
type: string
- description: appName
in: query
name: appName
required: true
type: string
- description: namespace
in: query
name: namespace
type: string
produces:
- application/json
responses:
"200":
description: OK
schema:
type: boolean
security:
- JWT: []
summary: Check duplicate appServeAppName
tags:
- AppServeApps
/organizations/{organizationId}/cloud-accounts:
get:
consumes:
Expand Down
Loading

0 comments on commit 8538c38

Please sign in to comment.