Find Jobs
Hire Freelancers

Attempting to pass JSON body for deletion through angular JS

£10-20 GBP

Fechado
Publicado há aproximadamente 4 anos

£10-20 GBP

Pago na entrega
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) { resolve(response); }, function (errorResponse) { reject(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.
ID do Projeto: 24006752

Sobre o projeto

2 propostas
Projeto remoto
Ativo há 4 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
2 freelancers estão ofertando em média £19 GBP for esse trabalho
Avatar do Usuário
Dear Sir, I can help fix this website. Kindly share your credentials so I can start work . Awaiting to hear from you
£20 GBP em 1 dia
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
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 em 1 dia
0,0 (0 avaliações)
0,0
0,0

Sobre o cliente

Bandeira do(a) GERMANY
Belfast, Germany
5,0
3
Método de pagamento verificado
Membro desde nov. 11, 2019

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.