Replacing Restangular by custom ApiClient