restful api library