Rest service dependency injection