The template generates services which use old Http class. Please use latest (available since [email protected]) HttpClient from '@angular/common/http' which is necessary for new interceptors suppot
2.3.0
modules/swagger-codegen/src/main/resources/typescript-angular2/api.service.mustache
java -jar swagger-codegen-cli.jar generate -i swagger.json -l typescript-angular -o out/
import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';
...and refactor the rest accordingly
The feature will be merged soon. See #6295
Most helpful comment
The feature will be merged soon. See #6295