Updated restful api