The ngResource module provides interaction support with RESTful services via the $resource service.
From Angularjs documentation:
The ngResource module provides interaction support with RESTful services via the $resource service.
$resource
A factory which creates a resource object that lets you interact with RESTful server-side data sources.
By default, trailing slashes will be stripped from the calculated URLs, which can pose problems with server backends that do not expect that behavior. This can be disabled by configuring the $resourceProvider
like this:
app.config(['$resourceProvider', function($resourceProvider) {
// Don't strip trailing slashes from calculated URLs
$resourceProvider.defaults.stripTrailingSlashes = false;
}]);