fix rest interface

Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>