Skip to content

Commit

Permalink
Merge pull request #44 from seungkyua/20230426_rollback
Browse files Browse the repository at this point in the history
20230426 rollback
  • Loading branch information
seungkyua authored Apr 26, 2023
2 parents 05e0f48 + 2958ddc commit b2357c5
Show file tree
Hide file tree
Showing 8 changed files with 384 additions and 256 deletions.
162 changes: 78 additions & 84 deletions api/swagger/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,59 +23,6 @@ const docTemplate = `{
"host": "{{.Host}}",
"basePath": "{{.BasePath}}",
"paths": {
"/admin/organizations/{organizationId}/alerts": {
"post": {
"security": [
{
"JWT": []
}
],
"description": "Update user detail",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Admin"
],
"summary": "As admin, Update user detail",
"parameters": [
{
"type": "string",
"description": "organizationId",
"name": "organizationId",
"in": "path",
"required": true
},
{
"type": "string",
"description": "accountId",
"name": "accountId",
"in": "path",
"required": true
},
{
"description": "update user request",
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/domain.UpdateUserByAdminRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/domain.UpdateUserByAdminResponse"
}
}
}
}
},
"/app-groups": {
"get": {
"security": [
Expand Down Expand Up @@ -1150,13 +1097,13 @@ const docTemplate = `{
}
}
},
"put": {
"post": {
"security": [
{
"JWT": []
}
],
"description": "Update appServeApp",
"description": "Install appServeApp",
"consumes": [
"application/json"
],
Expand All @@ -1166,34 +1113,62 @@ const docTemplate = `{
"tags": [
"AppServeApps"
],
"summary": "Update appServeApp",
"summary": "Install appServeApp",
"parameters": [
{
"description": "update appserve request",
"description": "create appserve request",
"name": "object",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/domain.UpdateAppServeAppRequest"
"$ref": "#/definitions/domain.CreateAppServeAppRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "object"
"type": "string"
}
}
}
}
},
"/organizations/{organizationId}/app-serve-apps/{appId}": {
"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": {
"$ref": "#/definitions/domain.AppServeApp"
}
}
}
},
"post": {
"put": {
"security": [
{
"JWT": []
}
],
"description": "Install appServeApp",
"description": "Update appServeApp",
"consumes": [
"application/json"
],
Expand All @@ -1203,23 +1178,23 @@ const docTemplate = `{
"tags": [
"AppServeApps"
],
"summary": "Install appServeApp",
"summary": "Update appServeApp",
"parameters": [
{
"description": "create appserve request",
"description": "update appserve request",
"name": "object",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/domain.CreateAppServeAppRequest"
"$ref": "#/definitions/domain.UpdateAppServeAppRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "string"
"type": "object"
}
}
}
Expand Down Expand Up @@ -1308,14 +1283,14 @@ const docTemplate = `{
}
}
},
"/organizations/{organizationId}/app-serve-apps/{appId}/status": {
"patch": {
"/organizations/{organizationId}/app-serve-apps/{appId}/rollback": {
"post": {
"security": [
{
"JWT": []
}
],
"description": "Update app status",
"description": "Rollback appServeApp",
"consumes": [
"application/json"
],
Expand All @@ -1325,22 +1300,15 @@ const docTemplate = `{
"tags": [
"AppServeApps"
],
"summary": "Update app status",
"summary": "Rollback appServeApp",
"parameters": [
{
"type": "string",
"description": "appId",
"name": "appId",
"in": "path",
"required": true
},
{
"description": "update app status request",
"name": "body",
"description": "rollback appserve request",
"name": "object",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/domain.UpdateAppServeAppStatusRequest"
"$ref": "#/definitions/domain.RollbackAppServeAppRequest"
}
}
],
Expand All @@ -1354,14 +1322,14 @@ const docTemplate = `{
}
}
},
"/organizations/{organizationId}/app-serve-apps/{appServeAppId}": {
"get": {
"/organizations/{organizationId}/app-serve-apps/{appId}/status": {
"patch": {
"security": [
{
"JWT": []
}
],
"description": "Get appServeApp by giving params",
"description": "Update app status",
"consumes": [
"application/json"
],
Expand All @@ -1371,12 +1339,30 @@ const docTemplate = `{
"tags": [
"AppServeApps"
],
"summary": "Get appServeApp",
"summary": "Update app status",
"parameters": [
{
"type": "string",
"description": "appId",
"name": "appId",
"in": "path",
"required": true
},
{
"description": "update app status request",
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/domain.UpdateAppServeAppStatusRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/domain.AppServeApp"
"type": "object"
}
}
}
Expand Down Expand Up @@ -4285,6 +4271,14 @@ const docTemplate = `{
}
}
},
"domain.RollbackAppServeAppRequest": {
"type": "object",
"properties": {
"taskId": {
"type": "string"
}
}
},
"domain.SimpleUserResponse": {
"type": "object",
"properties": {
Expand Down
Loading

0 comments on commit b2357c5

Please sign in to comment.