Luxoft / gengen

Tool for generating models and Angular services based on OpenAPIs and Swagger's JSON.
MIT License
17 stars 8 forks source link

Usage of multiple swagger endpoint in one angular project + CORS endpoints #55

Closed sevaru closed 3 years ago

sevaru commented 3 years ago

Is your feature request related to a problem? Please describe. As for now we can't generate multiple services/models to one directory. And can't generate services which would use dynamic basePath CORS endpoints

Describe the solution you'd like As a solution we suggests 1) options aliasName that would be used in services/models filenames 2) global variable (e.g. gengenbasePathMap) with map of alias <-> basePath (e.g. { ['myalias']: 'https://myapibasepath.com/api' }