Does anyone know how to generate java code from swagger 2.0
My library is swagger-codegen-cli-2.1.2.jar
Does anyone know how to generate java code from swagger 2.0
My library is swagger-codegen-cli-2.1.2.jar
There are multiple ways to generate either the server code or the client code.
Using https://generator.swagger.io, you can generate it online by providing your swagger.json
There are plugins for build tools like Maven and Gradle, for example thebignet/swagger-codegen-gradle-plugin, they have examples on their github page
Using the command line by installing it on your OS (as explained on the swagger codegen github page). They also show a java -jar swagger-codegen-cli.jar help
which should be of help!