0
を使用するには:Angularjs&restangular:どのように私は、データを取得する1つの基本モデルのために、私のアプリでは、複雑なルートに
var baseAccounts = Restangular.all('accounts');
baseAccounts.getList().then(function(accounts) {
$scope.allAccounts = accounts;
});
var newAccount = {name: "Gonto's account"};
し、私は、POSTリクエストの送信:
baseAccounts.post(newAccount);
しかし、私のアプリではまた、私は、このようなルートを持っている:
/accounts/batchimport
どのように私は、モデルのURLに私のnewAccountオブジェクトを送信することができますaccounts/batchimport
?
は可能ですか? とはどのようにですか?