Enviar Json Aninhado Angular

17/06/2021

0



olá pessoal estou com uma dúvida sobre um projeto angular que estou criando, se trata de um envio de informações via json para uma API.

preciso enviar um JSON assim referenciando o cliente e o veiculo com o ID aninhado.

{
"id": 1,
"cliente": {
"id": 1
},
"tipoOrdemServico": "REVISÃO",
"veiculo": {
"id": 1
},
"km": "50",
"observacao": "TESTE"
}

mais está indo assim.

{
"cliente": 3,
"tipoOrdemServico": "REVISÃO",
"veiculo": 1,
"km": " 1000",
"observacao": " ",
"id": 2
}

se alguém puder me ajudar agradeço segue link do git do projeto.

https://github.com/felipegm011/Aplicacao_ControlReview

Felipe Mendes

Felipe Mendes

Responder

Posts

20/06/2021

Nickmiler

I also have the same question about web development.
Responder

22/06/2021

Nickmiler

There are other companies that have been around for many years. Such companies usually hire a core group of programmers and then send people out to clients to develop custom software. The custom software developed by the software development team is not available to anyone else, but it is often well worth the expense to use this software. Such companies must also be very fast in their response to customer requests, as they will likely be competing against a large number of other businesses who need the same software. The software developed by the software development team will most likely have bugs in it, so it is important for them to be on hand to solve problems as quickly as possible.
Responder

22/06/2021

Nickmiler

I recommend ask any question in [url=https://mlsdev.com/services/custom-software-development]https://mlsdev.com/services/custom-software-development[/url]
Responder

22/06/2021

Nickmiler

<a href="https://mlsdev.com/services/custom-software-development">https://mlsdev.com/services/custom-software-development</a>
Responder

Utilizamos cookies para fornecer uma melhor experiência para nossos usuários, consulte nossa política de privacidade.

Aceitar