APIv4 PUT /commands/{command_id} (#5999)

* APIv4 PUT /commands/{command_id}

* update client parameter and api4 test
This commit is contained in:
Saturnino Abril
2017-04-08 02:06:09 +09:00
committed by Corey Hulen
parent f7b39caf31
commit a3f5cffd46
5 changed files with 163 additions and 1 deletions

View File

@@ -477,3 +477,14 @@ func (c *Context) RequireHookId() *Context {
return c
}
func (c *Context) RequireCommandId() *Context {
if c.Err != nil {
return c
}
if len(c.Params.CommandId) != 26 {
c.SetInvalidUrlParam("command_id")
}
return c
}