methods in restful services