In our app, we use Swagger Codegen to generate Typescript Angular API, and we use it the same way as described in this article: https://www.c-sharpcorner.com/blogs/generate-angulartypescript-api-client-with-swagger-codegen by Naveen.
I have a question regarding setting header.
This is how we're doing it:
- this.fooService.defaultHeaders = new HttpHeaders({HeaderName: this.headerValue});
this.fooService.getBar(...[values]).subscribe(...)
Our hope was there maybe there exists a way to say:
- this.fooService.getBar(...[values], ...[Options]).subscribe(...)
Thank you for your help!
Naveen MotwaniPosted Feb 1, 2020, 8:48 AM