implemented REST api proxy