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

* APIv4 PUT /commands/{command_id}

* update client parameter and api4 test
Этот коммит содержится в:
Saturnino Abril
2017-04-08 02:06:09 +09:00
коммит произвёл Corey Hulen
родитель f7b39caf31
Коммит a3f5cffd46
5 изменённых файлов: 163 добавлений и 1 удалений

Просмотреть файл

@@ -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
}