My API has a get method that exposes 4 objects that contain 1 href in each, i need to make 4 get requests with the href's after doing the first GET
API contract
{
"tipoDocumentoCliente": "CPF",
"documentoCliente": "9687023767",
"nomeCliente": "RAFAEL HERMOGENES DE MENDONCA",
"dataNascimentoCliente": "1982-04-14T00:00:00",
"sexoCliente": "MASCULINO",
"estadoCivilCliente": "CASADO",
"cpfCliente": "9687023767",
"cnpjCliente": null,
"celCliente": null,
"profissaoCliente": "Analista de desenvolvimento de sistemas",
"rendaCliente": 12000,
"escolaridadeCliente": null,
"matricula": 0,
"contas": {
"method": "Get",
"rel": "get-contas",
"href": "http://localhost:62474/api/v1/Contas/9687023767"
},
"enderecos": {
"method": "Get",
"rel": "get-enderecos",
"href": "http://localhost:62474/api/v1/Endereco/9687023767"
},
"telefones": {
"method": "Get",
"rel": "get-telefones",
"href": "http://localhost:62474/api/v1/Phones/9687023767"
},
"emails": {
"method": "Get",
"rel": "get-emails",
"href": "http://localhost:62474/api/v1/Emails/9687023767"
}
}
This i how i do a single request to my api
public ObterFundos<T>(cpf: number): Observable<T> {
return this.http.get<T>(this._calcularFundosUrl + cpf);
}
i have no idea how im going to use the hrefs inside the request