add the restful api resource