inject rest service