cyclosproject / ng-openapi-gen

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

How to Implement Two Different APIs with Separate Root URLs #327

Closed Gatos90 closed 1 month ago

Gatos90 commented 1 month ago

Hi everyone,

I'm working on a project where I need to integrate two different APIs, each with its own root URL. Does anyone have suggestions or best practices for handling multiple root URLs ?

Thanks in advance for your help!

Greetings,

Leonardonline commented 1 month ago

Hi, in my case, I created 2 npm script that generate 2 different subfolder (api/*) pointing to (supposed) different openApi file specification.

luisfpg commented 1 month ago

Yes, handle both as totally independent generations. You can set a configuration file per api, each with distinct output dirs.