Contributions
Need to generate API Docs for plain Servlet
Hi, I am trying this example:https://github.com/swagger-api/swagger-samples/blob/master/java/java-servletto configure swagger with servlet. Following thisServletclass from the example, I tried to configure my servlet class as well. However the generatedswagger.jsononlycontainsSwaggerDefinitionand not scanning other annotations such asApi , @ApiOperation , @ApiImplicitParams , @ApiImplicitParam Below is the swagger.json for reference: {"swagger":"2.0","info":{"description":"This is a sample server","version":"1.0.0","title":"Swagger Sample Servlet","termsOfService":"http://swagger.io/terms/","contact":{"name":"Sponge-Bob","url":"http://swagger.io","email":"apiteam@swagger.io"},"license":{"name":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}},"tags":[{"name":"users","description":"Operations about user"}],"schemes":["http","https"],"consumes":["application/json","application/xml"],"produces":["application/json","application/xml"]} Do we have any pointers to this? Also, is there a maven plugin likehttps://github.com/swagger-api/swagger-core/tree/master/modules/swagger-maven-pluginto generate the spec at BUILD phase for SERVLETS? Any help is appreciated !!!654Views0likes0Comments