restangular
restangular copied to clipboard
AngularJS service to handle Rest API Restful Resources properly and easily
Because of `angular.forEach()` does not enumerate properties defined as `Object.defineProperty(object_prototype,...{get:... set:...})`, `restangular.get()` misses such properties, despite of the object overrides `toJSON()`. I think, that *restangular.js @791* `angular.forEach(value, function(v) {` must...
For example: ``` javascript angular.module('app', ['restangular']).run(["Restangular", function (Restangular) { Restangular.setTransformOnlyServerElements(true); Restangular.addElementTransformer('items', false, function(obj) { if (!obj.fromServer) { console.debug("I wouldn't expect to get here"); } return obj; }); Restangular.one('items',0).get().then(function(c) { //do...
I use 'addFullRequestIntercepor' like next. but It not work. ``` javascript RestangularProvider.addFullRequestInterceptor(function(elem, operation, what, url, headers, params, httpConfig) { if(operation=="put"){ operation="patch"; } }); ``` Regards.
In my project i use restangular but in laravel debbuger its not showing message , exception and fired query in http request without restangular its showing exception , message and...
Calling remove on an element leads to restangularizing the returned element. this leads to unnecessary db calls if children are added through extendModel there should really be no need to...
I'm trying to make custom post on entity action (POST /environment/9/validated) The code calling restangular is the following: ``` Restangular.one('website', $routeParams.websiteId).one('environment', environment.id) .customPOST({}, 'validate').then(function(data) { console.log(data); }); ``` Back-end returns...
I tried to add a prefix `$` for all Restangular methods by setting `restangularFields`, as suggested here (https://github.com/mgonto/restangular/issues/675#issuecomment-41151648). Unfortunately, `Restangular.service` does not work any more after that, an error occurs...
Hi there, I was recently thinking if there are any plans to add hateoas support in restagular ? For instance I am have some server side business logic that is...
I'm trying to follow the documentation and after reading #139 and #1254 I'm more confused than ever. I have some tables on my DB, let's say User, Customer and UserCustomer...
Updated to demonstrate and resolve the issue in #1453