Angularjs 将请求主体传递到Restful接口

Angularjs 将请求主体传递到Restful接口,angularjs,rest,Angularjs,Rest,我的restful控制器从一个有角度的帖子接收到一个空请求主体,我不知道为什么 以下是我的控制器的代码: adminController.controller('ModalCtrl', ['$scope', '$modal', '$log', 'Profile', 'AvailableProfiles', function ($scope, $modal, $log, Profile, AvailableProfiles) { $scope.open = function

我的restful控制器从一个有角度的帖子接收到一个空请求主体,我不知道为什么

以下是我的控制器的代码:

adminController.controller('ModalCtrl', ['$scope', '$modal', '$log', 'Profile', 'AvailableProfiles',
        function ($scope, $modal, $log, Profile, AvailableProfiles) {
    $scope.open = function (uuid, profile) {
        var modalInstance = $modal.open({
            animation: true,
            templateUrl: 'myModalContent.html',
            controller: 'ModalInstanceCtrl',
            resolve: {
                profile: function () {
                    return profile;
                },
                AvailableProfiles: function () {
                    return AvailableProfiles;
                }
            }
        });
        modalInstance.result.then(function () {
            Profile.save({uuid: uuid}, {profile: profile});
        }, function () {});
    };
}]); 
这是我的服务代码:

adminService.factory('Profile', ['$resource',
    function($resource, uuid, profile) {
        return $resource(baseUrl + 'candidate/:uuid/profile', {profile}, {
            save: {method: 'POST', params: {uuid: uuid}},
        });
    }
]);

关于此配置文件对象没有被传递到帖子中的原因有什么想法吗?

调用配置文件对象的save

modalInstance.result.then(function () {
    profile.$save({uuid: uuid});
}, function () {});