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

Swagger aggregation #276

Closed
NoxFr opened this issue Dec 17, 2019 · 2 comments
Closed

Swagger aggregation #276

NoxFr opened this issue Dec 17, 2019 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@NoxFr
Copy link

NoxFr commented Dec 17, 2019

Is it possible to aggregate several swagger definition ?
(SwaggerResourcesProvider in springfox.web)

@springdoc springdoc added the duplicate This issue or pull request already exists label Dec 17, 2019
@springdoc
Copy link
Collaborator

Hi,

This is duplicate of: #108
This is an interesting feature, but we don't consider it as a a top priority.
Please note, we don't change the behaviour of the official swagger-ui jars.
In addition, this behaviour is very specific to services that relies on Eureka.

If you need to achieve it, you can contribute to springdoc-openapi.

  • You can have your back-end services to ship only the springdoc-openapi-core or springdoc-openapi-weblfux depending on your project APIs.
  • This way, all your back-end services will expose their documentation using the following path by default; /v3/api-docs
  • Then, you will need the swagger-ui to retrieve the documentation from the registred endepoints on Eureka.

@bnasslahsen
Copy link
Contributor

You can agregate multiple OpenAPI definitions using springdoc-openapi.
Here is a sample in a microservices architecture:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants