<feed xmlns='http://www.w3.org/2005/Atom'>
<title>angular.js/test/ngResource, branch v1.1.4</title>
<subtitle></subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/angular.js/'/>
<entry>
<title>feat(http): support request/response promise chaining</title>
<updated>2013-03-27T20:13:59+00:00</updated>
<author>
<name>Sylvester Keil</name>
</author>
<published>2013-02-26T09:22:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/angular.js/commit/?id=4ae46814ff4e7c0bbcdbbefc0a97277283a84065'/>
<id>4ae46814ff4e7c0bbcdbbefc0a97277283a84065</id>
<content type='text'>
myApp.factory('myAroundInterceptor', function($rootScope, $timeout) {
    return function(configPromise, responsePromise) {
        return {
            request: configPromise.then(function(config) {
                return config
            });
            response: responsePromise.then(function(response) {
                return 'ha!';
            }
        });
}

myApp.config(function($httpProvider){
    $httpProvider.aroundInterceptors.push('myAroundInterceptor');
});
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
myApp.factory('myAroundInterceptor', function($rootScope, $timeout) {
    return function(configPromise, responsePromise) {
        return {
            request: configPromise.then(function(config) {
                return config
            });
            response: responsePromise.then(function(response) {
                return 'ha!';
            }
        });
}

myApp.config(function($httpProvider){
    $httpProvider.aroundInterceptors.push('myAroundInterceptor');
});
</pre>
</div>
</content>
</entry>
<entry>
<title>feat($resource): ability to override url in resource actions</title>
<updated>2013-02-27T18:52:30+00:00</updated>
<author>
<name>zeflasher</name>
</author>
<published>2013-02-22T02:49:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/angular.js/commit/?id=60f1f099fc7e5197808cd6acb7407cdc40f50a3f'/>
<id>60f1f099fc7e5197808cd6acb7407cdc40f50a3f</id>
<content type='text'>
Resources now can defined per action url override. The url is treated
as a template rather than a literal string, so fancy interpolations
are possible.

See attached tests for example usage.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Resources now can defined per action url override. The url is treated
as a template rather than a literal string, so fancy interpolations
are possible.

See attached tests for example usage.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix($http): don't encode URL query substring "null" to "+"</title>
<updated>2013-02-27T01:25:15+00:00</updated>
<author>
<name>Andrew McLeod</name>
</author>
<published>2013-02-26T05:25:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/angular.js/commit/?id=86d191ed4aea9015adc71b852223475c5c762c34'/>
<id>86d191ed4aea9015adc71b852223475c5c762c34</id>
<content type='text'>
Fixes issue in encodeUriQuery used by $http and $resource that
treats null as a string and replaces the characters "null" with "+".
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes issue in encodeUriQuery used by $http and $resource that
treats null as a string and replaces the characters "null" with "+".
</pre>
</div>
</content>
</entry>
<entry>
<title>fix($http): do not encode special characters `@$:,` in params</title>
<updated>2013-02-14T22:52:46+00:00</updated>
<author>
<name>Vojta Jina</name>
</author>
<published>2013-02-14T22:39:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/angular.js/commit/?id=288b69a314e9bd14458b6647532eb62aad5c5cdf'/>
<id>288b69a314e9bd14458b6647532eb62aad5c5cdf</id>
<content type='text'>
encodeURIComponent is too aggressive and doesn't follow http://www.ietf.org/rfc/rfc3986.txt
with regards to the character set (pchar) allowed in path segments so we need
this test to make sure that we don't over-encode the params and break stuff
like buzz api which uses @self.

This is has already been fixed in `$resource`. This commit fixes it in a same way
for `$http` as well.

BREAKING CHANGE: $http does follow RFC3986 and does not encode special characters
like `$@,:` in params. If your application needs to encode these characters, encode
them manually, before sending the request.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
encodeURIComponent is too aggressive and doesn't follow http://www.ietf.org/rfc/rfc3986.txt
with regards to the character set (pchar) allowed in path segments so we need
this test to make sure that we don't over-encode the params and break stuff
like buzz api which uses @self.

This is has already been fixed in `$resource`. This commit fixes it in a same way
for `$http` as well.

BREAKING CHANGE: $http does follow RFC3986 and does not encode special characters
like `$@,:` in params. If your application needs to encode these characters, encode
them manually, before sending the request.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix($resource): params should expand array values properly</title>
<updated>2013-02-14T22:52:46+00:00</updated>
<author>
<name>Mark Nadig</name>
</author>
<published>2013-01-30T15:41:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/angular.js/commit/?id=2a2123441c2b749b8f316a24c3ca3f77a9132a01'/>
<id>2a2123441c2b749b8f316a24c3ca3f77a9132a01</id>
<content type='text'>
Today, calling e.g. var R = $resource('/Path/:a'); R.get({a: 'foo', bar: ['baz1', 'baz2']}); results in a query
string like "/Path/doh?bar=baz1,baz2" which is undesirable. This commit enhances resource to use
$http to encode any non-url parameters resulting in a query string like "/Path/doh?bar=baz1&amp;bar=baz2".

BREAKING CHANGE: if the server relied on the buggy behavior then either the
backend should be fixed or a simple serialization of the array should be done
on the client before calling the resource service.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Today, calling e.g. var R = $resource('/Path/:a'); R.get({a: 'foo', bar: ['baz1', 'baz2']}); results in a query
string like "/Path/doh?bar=baz1,baz2" which is undesirable. This commit enhances resource to use
$http to encode any non-url parameters resulting in a query string like "/Path/doh?bar=baz1&amp;bar=baz2".

BREAKING CHANGE: if the server relied on the buggy behavior then either the
backend should be fixed or a simple serialization of the array should be done
on the client before calling the resource service.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(resource): Update RegExp to allow urlParams with out leading slash</title>
<updated>2013-02-14T22:43:55+00:00</updated>
<author>
<name>Fredrik Bonander</name>
</author>
<published>2013-01-23T09:53:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/angular.js/commit/?id=b7e1fb0515798e1b4f3f2426f6b050951bee2617'/>
<id>b7e1fb0515798e1b4f3f2426f6b050951bee2617</id>
<content type='text'>
Will allow reoucese to be loaded from a relative path
Example:
var R = $resource(':path');
R.get({ path : 'data.json' });

Example usage:
Load resources in applications not using webserver, ie local webapp in 
on a tablet.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Will allow reoucese to be loaded from a relative path
Example:
var R = $resource(':path');
R.get({ path : 'data.json' });

Example usage:
Load resources in applications not using webserver, ie local webapp in 
on a tablet.
</pre>
</div>
</content>
</entry>
<entry>
<title>feat($resource): expose promise based api via $then and $resolved</title>
<updated>2013-02-12T06:24:21+00:00</updated>
<author>
<name>Igor Minar</name>
</author>
<published>2013-02-12T05:43:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/angular.js/commit/?id=dba6bc73e802fdae685a9f351d3e23c7efa8568a'/>
<id>dba6bc73e802fdae685a9f351d3e23c7efa8568a</id>
<content type='text'>
Expose $then and $resolved properties on resource action return values which
allow checking if a promise has been resolved already as well as registering
listeners at any time of the resource object life-cycle.

This commit replaces unreleased commit f3bff27460afb3be208a05959d5b84233d34b7eb
which exposed unintuitive $q api instead and didn't expose important stuff
like http headers.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Expose $then and $resolved properties on resource action return values which
allow checking if a promise has been resolved already as well as registering
listeners at any time of the resource object life-cycle.

This commit replaces unreleased commit f3bff27460afb3be208a05959d5b84233d34b7eb
which exposed unintuitive $q api instead and didn't expose important stuff
like http headers.
</pre>
</div>
</content>
</entry>
<entry>
<title>feat(resource): add $q/$resorved property to Resource</title>
<updated>2013-01-24T04:57:26+00:00</updated>
<author>
<name>Partap Davis</name>
</author>
<published>2013-01-17T22:21:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/angular.js/commit/?id=f3bff27460afb3be208a05959d5b84233d34b7eb'/>
<id>f3bff27460afb3be208a05959d5b84233d34b7eb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>revert: fix($resource): Route constructor, updated RegExp</title>
<updated>2013-01-23T00:32:02+00:00</updated>
<author>
<name>Igor Minar</name>
</author>
<published>2013-01-23T00:30:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/angular.js/commit/?id=ffe5e01584ec1c10930a9a01ce4cec2ec888966b'/>
<id>ffe5e01584ec1c10930a9a01ce4cec2ec888966b</id>
<content type='text'>
This reverts commit 06ed8ef0127bf80610eba17b5021d1f483d0b0bf.

The reverted commit causes regressions. See comments in the PR:
https://github.com/angular/angular.js/pull/1402#issuecomment-12575399
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 06ed8ef0127bf80610eba17b5021d1f483d0b0bf.

The reverted commit causes regressions. See comments in the PR:
https://github.com/angular/angular.js/pull/1402#issuecomment-12575399
</pre>
</div>
</content>
</entry>
<entry>
<title>fix($resource): Route constructor, updated RegExp</title>
<updated>2013-01-19T05:28:15+00:00</updated>
<author>
<name>Fredrik Bonander</name>
</author>
<published>2012-09-21T11:39:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/angular.js/commit/?id=06ed8ef0127bf80610eba17b5021d1f483d0b0bf'/>
<id>06ed8ef0127bf80610eba17b5021d1f483d0b0bf</id>
<content type='text'>
Update RegExp to allow urlParams with out leading slash (/).
- Will allow reoucese to be loaded from a relative path

Example:
var R = $resource(':path');
R.get({ path : 'data.json' });

Example usage:
Load resources in applications not using webserver, ie local webapp in on a tablet.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Update RegExp to allow urlParams with out leading slash (/).
- Will allow reoucese to be loaded from a relative path

Example:
var R = $resource(':path');
R.get({ path : 'data.json' });

Example usage:
Load resources in applications not using webserver, ie local webapp in on a tablet.</pre>
</div>
</content>
</entry>
</feed>
