mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-11-30 02:38:17 +08:00
[REV]Update swagger post -> delete
This commit is contained in:
parent
2fffc1831e
commit
f442d56fca
@ -3571,7 +3571,7 @@
|
||||
}
|
||||
},
|
||||
"/v2/tenants/{tenant_name}/services/{service_alias}/plugin/{plugin_id}": {
|
||||
"post": {
|
||||
"delete": {
|
||||
"description": "delete plugin relation",
|
||||
"consumes": [
|
||||
"application/json",
|
||||
|
@ -534,7 +534,7 @@ func (t *TenantStruct) getPluginSet(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
//DeletePluginRelation DeletePluginRelation
|
||||
func (t *TenantStruct) DeletePluginRelation(w http.ResponseWriter, r *http.Request) {
|
||||
// swagger:operation POST /v2/tenants/{tenant_name}/services/{service_alias}/plugin/{plugin_id} v2 deletePluginRelation
|
||||
// swagger:operation DELETE /v2/tenants/{tenant_name}/services/{service_alias}/plugin/{plugin_id} v2 deletePluginRelation
|
||||
//
|
||||
// 删除插件依赖
|
||||
//
|
||||
@ -554,7 +554,7 @@ func (t *TenantStruct) DeletePluginRelation(w http.ResponseWriter, r *http.Reque
|
||||
// schema:
|
||||
// "$ref": "#/responses/commandResponse"
|
||||
// description: 统一返回格式
|
||||
pluginID := r.Context().Value(middleware.ContextKey("plugin_id")).(string)
|
||||
pluginID := chi.URLParam(r, "plugin_id")
|
||||
serviceID := r.Context().Value(middleware.ContextKey("service_id")).(string)
|
||||
if err := handler.GetServiceManager().TenantServiceDeletePluginRelation(serviceID, pluginID); err != nil {
|
||||
err.Handle(r, w)
|
||||
|
Loading…
Reference in New Issue
Block a user