Attempting to pass JSON body for deletion through angular JS

Attempting to pass JSON body for deletion through angular JS

I've currently got an endpoint that relies on a JSON body in order for deletion to happen. This is the following code:

if ([login to view URL] > 0) {

var deleteRequest = [];

for (var i = 0; i < [login to view URL]; i++) {

var service = {};

[login to view URL] = $[login to view URL][toDeleteService[i]].serviceId;

[login to view URL](service);


var deleteUrl = "api/class/" + $scope.targetEntity.serviceId+ "/student";

await asyncDeleteUrl(deleteUrl, deleteRequest);


async function asyncDeleteUrl(deleteUrl, toBeDeleted) {

return new Promise(function (resolve, reject) {

$[login to view URL](deleteUrl, toBeDeleted)

.then(function (response) {



function (errorResponse) {


$[login to view URL]('Bad Modification Interrupted', errorResponse);




I keep getting an error saying the required rest body is missing but I'm not sure why that would be the case. Any help would be appreciated, thank you.

Skills: Angular.js, Programming, Coding

See more: angular js and html5 developer, angular js backbone js, angular js freelance developer, angular js ios freelance, angular js java, angular js net, angular js node js, Angular js projects, angular js with net, Angular js , freelance developers angular js chennai, freelancer angular js developer, frontend angular js, html5 angular js, laravel angular js, looking for angular js developer jobs, ruby + angular js, ruby angular js, Angular js ,Node.js, Jquery,PHP, SQL, JSON, Angular JS,Hadoop,Hive,Html5,Ionic,JSON,JQuery,Microsoft access,Application and testing,Oracle,React.js,Business intelligent,E p

About the Employer:
( 1 review ) Belfast, Germany

Project ID: #24006752

3 freelancers are bidding on average £19 for this job


Hello there! I have read your job description very carefully and I am very interesting in your project. As a senior full stack developer, I have a lot of experiences about angular and I can fix it in short time. Let's More

£20 GBP in 1 day
(1 Review)

Dear Sir, I can help fix this website. Kindly share your credentials so I can start work . Awaiting to hear from you

£20 GBP in 1 day
(0 Reviews)

This is easy. Dont pay me money. Your deleteRequest is empty as you are not pushing anything inside deleted request to be deleted.

£18 GBP in 1 day
(0 Reviews)