adding restful api