jQuery Datatables server side pagination with Restangular
<p>How can I use server side pagination with Restangular? 
When I enable "withOption('serverSide', true)", Datatables will call the API twice: A regular call and a datatables call passing datatables values but without the route "api/clientes".</p>

<p><a href="https://s31.postimg.org/xz3v7q9bf/datatables.jpg" rel="nofollow">https://s31.postimg.org/xz3v7q9bf/datatables.jpg</a></p>

<p>I'm trying this code but with no success.
How can I solve this</p>

<pre><code>var getTableData = function () {
            var defer = $q.defer();
            RestangularAuth.all('clientes').getList().then(function (result) {
                defer.resolve(result.data);
            });
            return defer.promise;
        };


            vm.dtOptions = DTOptionsBuilder.fromFnPromise(getTableData())
                //.withOption('serverSide', true)
                .withPaginationType('full_numbers');
</code></pre>