Contributions
Re: Swagger to generate docs from Java API code
Yes, I'm trying to do the first option (documentation generated at build time). I'm afraid, I'll need some help with getting that 'resolve' task described (I'm not experienced with Gradle either). I see some code for the resolve task in the README page but I'm not sure where I'm supposed to add it. Somewhere in the build.gradle file, I presume, but where specifically? resolve { outputFileName = 'PetStoreAPI' outputFormat = 'JSON' prettyPrint = 'TRUE' classpath = sourceSets.main.runtimeClasspath resourcePackages = ['io.test'] outputDir = file('test') }3KViews0likes0CommentsRe: Swagger to generate docs from Java API code
After going through the articles I'm still not sure how to include Swagger in my project. I understand I need to add the dependency to the Swagger package but I don't know how exactly. I've tried adding these lines to the build.gradle file but can't see any effects: plugins { id "io.swagger.core.v3.swagger-gradle-plugin" version "2.1.1" }3KViews0likes2CommentsSwagger to generate docs from Java API code
I need to automatically generate documentation from Java API code written by someone else using the Jersey framework. The project is built using Gradle. I'm trying to figure out how to use Swagger for this purpose but can't. I found a page (https://www.tutorialspoint.com/spring_boot/spring_boot_enabling_swagger2.htm) where it says I need to add some lines to the build.gradle file but I don't know where and also the page is for the Spring API. How can I use Swagger here?3.2KViews0likes6Comments