Concatenation of Angular http requests
I am facing the following scenario. There is a Front End app, built with Angular(2), which is connected with a REST Back End accessible via http. Once an user logs in (using email and pwd), the Back End returns data related to the user and in particular an id associated with the user (let's call this userId ) and the code of the region where he lives (let's call this regionId ). Via the userId I can query the Back End to get the affinity group ID to which the user belongs (let's call this affinityId ). Finally, using affinityId and regionId I can retrieve from the Back End the discount to