weixin_39557087 2020-11-21 15:54
浏览 0

Implement automatic generation of Open API / Swagger documentation from JavaDoc comments in controllers

the idea is to develop the OpenAPI documentation directly in the controller Java files as JavaDoc, but then generate the OpenAPI - compatible format to expose as real documentation. This way, the JavaDoc will also serve and an official API documentation.

Also, it makes sense to carve out blocks of JavaDoc for this, such that if any content is outside such a block, it will not be part of the exposed API - this is necessary for internal comments, implementational detail, etc.

该提问来源于开源项目:javalite/javalite

  • 写回答

7条回答 默认 最新

  • weixin_39557087 2020-11-21 15:54
    关注

    Interesting resources:

    https://developer.ibm.com/technologies/api/blogs/document-apis-with-open-source-openapi-comment-parser/

    评论

报告相同问题?