building rest api-server with cuba