如何使用swagger访问api文档

如何使用swagger访问api文档,api,swagger,dropwizard,Api,Swagger,Dropwizard,我已经按照这份文件中相同的步骤做了 如何访问我为资源编写的文档。这是TEYAML文件 swaggerBasePath: http://localhost:9080 这个url的后缀是什么?我使用smoketurner捆绑包,它运行良好 启动dropwizard应用程序时 INFO [2017-03-23 04:10:03,931] [main] [DropwizardResourceConfig]: The following paths were found for the

我已经按照这份文件中相同的步骤做了

如何访问我为资源编写的文档。这是TEYAML文件

swaggerBasePath: 
  http://localhost:9080

这个url的后缀是什么?

我使用smoketurner捆绑包,它运行良好

启动dropwizard应用程序时

    INFO  [2017-03-23 04:10:03,931] [main] [DropwizardResourceConfig]: The following paths were found for the configured resources:

    GET     /swagger (io.swagger.jaxrs.listing.ApiListingResource)
    GET     /swagger.{type:json|yaml} (io.swagger.jaxrs.listing.ApiListingResource)

分享相关代码会很好,然后链接您使用的是什么版本的dropwizrd?我在0.8上,它遇到了一些问题谢谢!!我有一个相互矛盾的依赖关系,否则效果很好