Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple spec files and urls #125

Open
minchevz opened this issue Sep 6, 2022 · 0 comments
Open

multiple spec files and urls #125

minchevz opened this issue Sep 6, 2022 · 0 comments

Comments

@minchevz
Copy link

minchevz commented Sep 6, 2022

Hi, im trying to use with multiple spec files and urls defined. but it runs only one of them if i define 2 spec.
is it possible to run like this as in swagger-ui package .

const ui = SwaggerUIBundle({
    urls: [
      { name: 'v1', url: 'https://petstore.swagger.io/v2/swagger.json'},
      { name: 'v2', url: 'https://petstore.swagger.io/v2/swagger.json'}
    ]
  })

using the middleware as its , it runs only on of them currently if i dont miss anything.

 oas({
    spec,
    endpoint: '/v2',
    uiEndpoint: '/'
  });

would be good if its possible to run with multiple endpoints as array and can version apis on UI as :
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant