add rule
This commit is contained in:
parent
b94f6c4ddf
commit
0815f8bd58
@ -167,12 +167,12 @@ func (o *SharedWorkspaceController) AddPeer() {
|
|||||||
o.ServeJSON()
|
o.ServeJSON()
|
||||||
}
|
}
|
||||||
|
|
||||||
// @Title Add Peer
|
// @Title Add Rule
|
||||||
// @Description find shared workspace by id
|
// @Description find shared workspace by id
|
||||||
// @Param id path string true "the id you want to get"
|
// @Param id path string true "the id you want to get"
|
||||||
// @Param id2 path string true "the id you want to add"
|
// @Param id2 path string true "the id you want to add"
|
||||||
// @Success 200 {shared workspace} models.shared_workspace
|
// @Success 200 {shared workspace} models.shared_workspace
|
||||||
// @router /:id/peer/:id2 [post]
|
// @router /:id/rule/:id2 [post]
|
||||||
func (o *SharedWorkspaceController) AddRule() {
|
func (o *SharedWorkspaceController) AddRule() {
|
||||||
var res map[string]interface{}
|
var res map[string]interface{}
|
||||||
id := o.Ctx.Input.Param(":id")
|
id := o.Ctx.Input.Param(":id")
|
||||||
|
@ -118,7 +118,7 @@ func init() {
|
|||||||
beego.GlobalControllerRouter["oc-shared/controllers:SharedWorkspaceController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:SharedWorkspaceController"],
|
beego.GlobalControllerRouter["oc-shared/controllers:SharedWorkspaceController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:SharedWorkspaceController"],
|
||||||
beego.ControllerComments{
|
beego.ControllerComments{
|
||||||
Method: "AddRule",
|
Method: "AddRule",
|
||||||
Router: `/:id/peer/:id2`,
|
Router: `/:id/rule/:id2`,
|
||||||
AllowHTTPMethods: []string{"post"},
|
AllowHTTPMethods: []string{"post"},
|
||||||
MethodParams: param.Make(),
|
MethodParams: param.Make(),
|
||||||
Filters: nil,
|
Filters: nil,
|
||||||
|
@ -313,6 +313,36 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"/shared/workspace/{id}/rule/{id2}": {
|
||||||
|
"post": {
|
||||||
|
"tags": [
|
||||||
|
"shared/workspace"
|
||||||
|
],
|
||||||
|
"description": "find shared workspace by id\n\u003cbr\u003e",
|
||||||
|
"operationId": "SharedWorkspaceController.Add Rule",
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"in": "path",
|
||||||
|
"name": "id",
|
||||||
|
"description": "the id you want to get",
|
||||||
|
"required": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"in": "path",
|
||||||
|
"name": "id2",
|
||||||
|
"description": "the id you want to add",
|
||||||
|
"required": true,
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "{shared workspace} models.shared_workspace"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"/shared/workspace/{id}/workflow/{id2}": {
|
"/shared/workspace/{id}/workflow/{id2}": {
|
||||||
"post": {
|
"post": {
|
||||||
"tags": [
|
"tags": [
|
||||||
|
@ -117,6 +117,28 @@ paths:
|
|||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: '{shared workspace} models.shared_workspace'
|
description: '{shared workspace} models.shared_workspace'
|
||||||
|
/shared/workspace/{id}/rule/{id2}:
|
||||||
|
post:
|
||||||
|
tags:
|
||||||
|
- shared/workspace
|
||||||
|
description: |-
|
||||||
|
find shared workspace by id
|
||||||
|
<br>
|
||||||
|
operationId: SharedWorkspaceController.Add Rule
|
||||||
|
parameters:
|
||||||
|
- in: path
|
||||||
|
name: id
|
||||||
|
description: the id you want to get
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
- in: path
|
||||||
|
name: id2
|
||||||
|
description: the id you want to add
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: '{shared workspace} models.shared_workspace'
|
||||||
/shared/workspace/{id}/workflow/{id2}:
|
/shared/workspace/{id}/workflow/{id2}:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
|
Loading…
Reference in New Issue
Block a user