angular/angular.js — pull request #1211 by matsko (2012-07-30 18:53:36+00:00)
Title: Added URL Suffixes to Resources

When using AngularJS with a server-side framework that requires a URL suffix like .json then angular will keep the suffix for all resource variants. So when you have a POST or index request then you end up having URLs that look like "/resource/.json".

Here's the issue in detail:
http://stackoverflow.com/questions/11622665/format-all-model-service-urls-to-include-json-in-angular-js

I've added the code into the repo to fix this. By setting a _suffix variable in the params{} hash when creating a resource then the suffix can be added properly.