RestService dependency injection