cyclosproject / ng-openapi-gen

An OpenAPI 3.0 codegen for Angular
MIT License
397 stars 132 forks source link

Allow Angular 12 HttpClient context #160

Closed gilsdav closed 2 years ago

gilsdav commented 3 years ago

Allow HttpClient context

https://netbasal.com/new-in-angular-v12-passing-context-to-http-interceptors-308a1ca2f3dd

It can be really interesting to allow calls like this: getPets('id', new HttpContext().set(CACHE_IT, true))

Lonli-Lokli commented 2 years ago

It can be solved with templates changes only, feel free to copy them from this PR https://github.com/cyclosproject/ng-openapi-gen/pull/215