Let's fetch an user var User = $resource('/api/v1/user/:userId', {userId:'@id'}); var user = User.get({userId:123}, function() { user.name = 'Gonto'; user.$save(); }); Let's now fetch his Cars var Car = $resource('/api/v1/user/:userId/cars/:carId', {userId:123, carId:'@id'}); var cars = Car.query(function() { var firstCar = cars[0]; firstCar.name = "Honda Fit"; firstCar.$save(); }); First we confi