I am generating a restful java jax-rs api with swagger-codgen-cli.jar.
Right now I call java -jar with some command line options to do this.
java -jar swagger-codegen-cli.jar generate -i api.yaml -l jaxrs -o ./outputdir
Which works fine.
But I would like to make this call from of a Java program i.e. including the codegen.jar into my classpath and then call the corresponding method with similar parameters.
So is there a public API from the swagger-codegen module which I can call?