Open luizfbicalho opened 3 years ago
Hi,
yes you can take a look at https://github.com/AdaskoTheBeAsT/NetCoreTypewriterRecipes/blob/master/src/AngularWebApiSample/ClientApp/src/api/services/_AutogeneratedServices.tst https://github.com/AdaskoTheBeAsT/NetCoreTypewriterRecipes/blob/master/src/AngularWebApiSample/ClientApp/src/api/services/_AutogeneratedServices.tst
model classes are separated from services - full inheritance of model classes is implemented with different type collections I use ProducesResponseType attribute extensively.
Also for HttpGet method I use trick to compose class from parameters passed in url
Did Anyone make a tst to generate a full angular service that handle multiple response types? It would be perfect with error treatment, retry, feature toggle. If someone started on this, I would like to help the implementation. this is my initial implementation