Springfox: View APIs from different Spring Cloud Instances registered in Eureka

Created on 23 Aug 2017  路  3Comments  路  Source: springfox/springfox

I want view all APIs from different Spring Cloud Instances in one page(or instance/server)
is there any config can help me to do that?

can-use-for-docs maintenance question

All 3 comments

Implement your own subclass of SwaggerResourcesProvider, based on this implementation. Just be sure to mark it as the @Primary bean.

@s-mop, have a look at the JHipster project: we have developed a custom registry app based on Eureka and it includes a Swagger UI + Zuul proxy which lets you do exactly what you want.
See: http://www.jhipster.tech/jhipster-registry/
Note: the Swagger feature is still undocumented and can be enabled with the "swagger" profile.

Indeed we use the SwaggerResourcesProvider but we also need to rewrite the basepath of json docs with a Zuul filter for the try it out button to work.

Added documentation as part of #1954

Was this page helpful?
0 / 5 - 0 ratings