AngularJS: PUT wysyła dane z URL, ale nie jako dane JSON

Tutaj jest mójUserService

angular.module('userServices', ['ngResource']).factory('User', function($resource) {
  return $resource('/users/:userId',
      // todo: default user for now, change it
      {userId: 'bd675d42-aa9b-11e2-9d27-b88d1205c810'},
      {update: {method: 'PUT', params:{profile: '@profile'}, isArray: false}}
  );
});

W moim kontrolerze to robię

$scope.save = function() {
    $scope.user.$update({profile: $scope.profile});
}

Ale kiedy widzę kartę Sieć w Chrome, widzę

Request URL:http://localhost:5000/users/bd675d42-aa9b-11e2-9d27-b88d1205c810?profile=%5Bobject+Object%5D
Request Method:PUT
Status Code:200 OK

Jak mogę wysłać to jakodata ładunek? po to abyURL jest

http://localhost:5000/users/bd675d42-aa9b-11e2-9d27-b88d1205c810

a dane idą jak

{
  day_in_month: 5
}

Mój punkt końcowy oczekuje, że dane będą częścią żądania, aby mógł je przeanalizować jakorequest.json

Dziękuję Ci

questionAnswers(2)

yourAnswerToTheQuestion