I have a RESTFUL API whose GET URL's are
For all : /customers.json
For single: /customers/1.json
angular.module('myApp.services', []).factory('Customer', function($resource) {
return $resource('api/v1/customers/:id.json', { id:'@customers.id' }, {
update: {
method: 'PATCH',
}
}, {
stripTrailingSlashes: false
});
})
Can anyone tell me how I can separate the two get call URLs, trying to check the docs, but they seem to be down.