Moved to the new rest API

Signed-off-by: Dalton Pelc <daltonjpelc@gmail.com>