RESTful api helper;