Skip to content

Serving multiple open-api specs? #708

Answered by ghost
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

Looks like launching two separate instances works fine:

npx counterfact my-second-openapi-spec.json api-second --open --port 3101

The key is specifying a different output folder, in this example api-second so that the generated files live separately and of course the port number so they can both run at the same time. My first thought was that I wanted them served under a single Counterfact server instance, but on reflection I think this will work just fine and more closely resembles the reality of two separate API hosts.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
0 participants