Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check duplicate appName #49

Merged
merged 2 commits into from
May 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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