Skip to content

Commit

Permalink
modify: merge configuration group
Browse files Browse the repository at this point in the history
  • Loading branch information
iwanghc committed Jul 8, 2024
1 parent a9655ec commit 0d69ec3
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 27 deletions.
18 changes: 9 additions & 9 deletions api/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
"/v1/dms/configurations/license": {
"get": {
"tags": [
"Configuration_License"
"Configuration"
],
"summary": "get license.",
"operationId": "GetLicense",
Expand All @@ -265,7 +265,7 @@
"multipart/form-data"
],
"tags": [
"Configuration_License"
"Configuration"
],
"summary": "import license.",
"operationId": "SetLicense",
Expand Down Expand Up @@ -300,7 +300,7 @@
"multipart/form-data"
],
"tags": [
"Configuration_License"
"Configuration"
],
"summary": "notify message.",
"operationId": "CheckLicense",
Expand Down Expand Up @@ -332,7 +332,7 @@
"/v1/dms/configurations/license/info": {
"get": {
"tags": [
"Configuration_License"
"Configuration"
],
"summary": "get generate license info.",
"operationId": "GetLicenseInfo",
Expand All @@ -352,7 +352,7 @@
"/v1/dms/configurations/license/usage": {
"get": {
"tags": [
"Configuration_License"
"Configuration"
],
"summary": "get license usage.",
"operationId": "GetLicenseUsage",
Expand All @@ -375,7 +375,7 @@
"/v1/dms/configurations/oauth2": {
"get": {
"tags": [
"Configuration_OAuth2"
"Configuration"
],
"summary": "Get Oauth2 configuration.",
"operationId": "GetOauth2Configuration",
Expand All @@ -396,7 +396,7 @@
},
"patch": {
"tags": [
"Configuration_OAuth2"
"Configuration"
],
"summary": "Update Oauth2 configuration..",
"operationId": "UpdateOauth2Configuration",
Expand Down Expand Up @@ -977,7 +977,7 @@
"/v1/dms/plugins": {
"post": {
"tags": [
"dmsPlugin"
"DMSPlugin"
],
"summary": "Register dms plugin.",
"operationId": "RegisterDMSPlugin",
Expand Down Expand Up @@ -3518,7 +3518,7 @@
"/v1/dms/proxys": {
"post": {
"tags": [
"dmsProxy"
"DMSProxy"
],
"summary": "Register dms proxy target.",
"operationId": "RegisterDMSProxyTarget",
Expand Down
18 changes: 9 additions & 9 deletions api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4518,7 +4518,7 @@ paths:
$ref: '#/definitions/GenericResp'
summary: get license.
tags:
- Configuration_License
- Configuration
post:
consumes:
- multipart/form-data
Expand All @@ -4540,7 +4540,7 @@ paths:
$ref: '#/definitions/GenericResp'
summary: import license.
tags:
- Configuration_License
- Configuration
/v1/dms/configurations/license/check:
post:
consumes:
Expand All @@ -4563,7 +4563,7 @@ paths:
$ref: '#/definitions/GenericResp'
summary: notify message.
tags:
- Configuration_License
- Configuration
/v1/dms/configurations/license/info:
get:
operationId: GetLicenseInfo
Expand All @@ -4576,7 +4576,7 @@ paths:
$ref: '#/definitions/GenericResp'
summary: get generate license info.
tags:
- Configuration_License
- Configuration
/v1/dms/configurations/license/usage:
get:
operationId: GetLicenseUsage
Expand All @@ -4591,7 +4591,7 @@ paths:
$ref: '#/definitions/GenericResp'
summary: get license usage.
tags:
- Configuration_License
- Configuration
/v1/dms/configurations/oauth2:
get:
operationId: GetOauth2Configuration
Expand All @@ -4606,7 +4606,7 @@ paths:
$ref: '#/definitions/GenericResp'
summary: Get Oauth2 configuration.
tags:
- Configuration_OAuth2
- Configuration
patch:
operationId: UpdateOauth2Configuration
parameters:
Expand All @@ -4627,7 +4627,7 @@ paths:
$ref: '#/definitions/GenericResp'
summary: Update Oauth2 configuration..
tags:
- Configuration_OAuth2
- Configuration
/v1/dms/configurations/smtp:
get:
operationId: GetSMTPConfiguration
Expand Down Expand Up @@ -5017,7 +5017,7 @@ paths:
$ref: '#/definitions/GenericResp'
summary: Register dms plugin.
tags:
- dmsPlugin
- DMSPlugin
/v1/dms/projects:
get:
operationId: ListProjects
Expand Down Expand Up @@ -6761,7 +6761,7 @@ paths:
$ref: '#/definitions/GenericResp'
summary: Register dms proxy target.
tags:
- dmsProxy
- DMSProxy
/v1/dms/roles:
get:
operationId: ListRoles
Expand Down
18 changes: 9 additions & 9 deletions internal/apiserver/service/dms_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -2218,7 +2218,7 @@ func (a *DMSController) DBServicesConnection(c echo.Context) error {
return NewOkRespWithReply(c, reply)
}

// swagger:operation POST /v1/dms/proxys dmsProxy RegisterDMSProxyTarget
// swagger:operation POST /v1/dms/proxys DMSProxy RegisterDMSProxyTarget
//
// Register dms proxy target.
//
Expand Down Expand Up @@ -2259,7 +2259,7 @@ func (d *DMSController) RegisterDMSProxyTarget(c echo.Context) error {
return NewOkResp(c)
}

// swagger:operation POST /v1/dms/plugins dmsPlugin RegisterDMSPlugin
// swagger:operation POST /v1/dms/plugins DMSPlugin RegisterDMSPlugin
//
// Register dms plugin.
//
Expand Down Expand Up @@ -2300,7 +2300,7 @@ func (d *DMSController) RegisterDMSPlugin(c echo.Context) error {
return NewOkResp(c)
}

// swagger:route GET /v1/dms/configurations/oauth2 Configuration_OAuth2 GetOauth2Configuration
// swagger:route GET /v1/dms/configurations/oauth2 Configuration GetOauth2Configuration
//
// Get Oauth2 configuration.
//
Expand All @@ -2315,7 +2315,7 @@ func (d *DMSController) GetOauth2Configuration(c echo.Context) error {
return NewOkRespWithReply(c, reply)
}

// swagger:operation PATCH /v1/dms/configurations/oauth2 Configuration_OAuth2 UpdateOauth2Configuration
// swagger:operation PATCH /v1/dms/configurations/oauth2 Configuration UpdateOauth2Configuration
//
// Update Oauth2 configuration..
//
Expand Down Expand Up @@ -2904,7 +2904,7 @@ func (d *DMSController) UpdateCompanyNotice(c echo.Context) error {
return NewOkResp(c)
}

// swagger:route GET /v1/dms/configurations/license Configuration_License GetLicense
// swagger:route GET /v1/dms/configurations/license Configuration GetLicense
//
// get license.
//
Expand All @@ -2926,7 +2926,7 @@ const (
DBServicesFileParamKey = "db_services_file"
)

// swagger:route GET /v1/dms/configurations/license/info Configuration_License GetLicenseInfo
// swagger:route GET /v1/dms/configurations/license/info Configuration GetLicenseInfo
//
// get generate license info.
//
Expand All @@ -2944,7 +2944,7 @@ func (d *DMSController) GetLicenseInfo(c echo.Context) error {
return c.Blob(http.StatusOK, echo.MIMEOctetStream, []byte(data))
}

// swagger:route GET /v1/dms/configurations/license/usage Configuration_License GetLicenseUsage
// swagger:route GET /v1/dms/configurations/license/usage Configuration GetLicenseUsage
//
// get license usage.
//
Expand All @@ -2960,7 +2960,7 @@ func (d *DMSController) GetLicenseUsage(c echo.Context) error {
return NewOkRespWithReply(c, usage)
}

// swagger:route POST /v1/dms/configurations/license Configuration_License SetLicense
// swagger:route POST /v1/dms/configurations/license Configuration SetLicense
//
// import license.
//
Expand All @@ -2985,7 +2985,7 @@ func (d *DMSController) SetLicense(c echo.Context) error {
return NewOkResp(c)
}

// swagger:route POST /v1/dms/configurations/license/check Configuration_License CheckLicense
// swagger:route POST /v1/dms/configurations/license/check Configuration CheckLicense
//
// notify message.
//
Expand Down

0 comments on commit 0d69ec3

Please sign in to comment.