extract restful api into utility class