restful with resource