我已遵循此文档http://mikelynchgames.com/software-development/adding-swagger-to-your-dropwizard-application/
中的相同步骤如何访问我为资源编写的文档。这是te yaml文件
swaggerBasePath:
http://localhost:9080
这个网址的后缀是什么?
答案 0 :(得分:0)
我使用smoketurner捆绑,它运作良好
https://github.com/smoketurner/dropwizard-swagger
启动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)