简体   繁体   中英

How to create open api documentation in .yaml format with maven?

I am building a rest api and part of the requirement is that we write documentation according to the open api specification. I am using ( http://editor.swagger.io ) to do this, and I find it irritating, and way less affective than creating normal javadoc. Is there a maven plugin, or something that can build documentation from comments in .yaml or .json format according to the open api specification? Thanks!

Seems like you're looking for that maven library https://springfox.github.io/springfox/docs/current/

It can automatically generate specifications in html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM