Enviar Json Aninhado Angular

Angular

17/06/2021



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

Curtidas 0

Respostas

Nickmiler

Nickmiler

17/06/2021

I also have the same question about web development.
GOSTEI 0
Nickmiler

Nickmiler

17/06/2021

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.
GOSTEI 0
Nickmiler

Nickmiler

17/06/2021

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

Nickmiler

17/06/2021

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