Bug Report Checklist
Description
I am using the typescript-angular generator. In the api.service it generates a basePath using http://localhost when you use a relative path.
protected basePath = 'http://localhost';
openapi-generator version
5.3.1
OpenAPI declaration file content or url
Steps to reproduce
Set the url in the openapi specification to a relative path, for example /api. When you run the typescript-angular generator now, it will generate the basePath in the api.service as http://localhost/api instead of /api
Related issues/PRs
#2731
#8576
Suggest a fix
Remove the prefixed http://localhost when a relative path is used.
Bug Report Checklist
Description
I am using the typescript-angular generator. In the api.service it generates a basePath using http://localhost when you use a relative path.
openapi-generator version
5.3.1
OpenAPI declaration file content or url
Steps to reproduce
Set the url in the openapi specification to a relative path, for example
/api. When you run the typescript-angular generator now, it will generate the basePath in the api.service ashttp://localhost/apiinstead of/apiRelated issues/PRs
#2731
#8576
Suggest a fix
Remove the prefixed
http://localhostwhen a relative path is used.