{apiVersion: "1.0",apis: [{description: "Action request interface for admin",path: "/default/action-request-admin",position: 0},{description: "Action request interface for dashboard",path: "/default/action-request-dashboard",position: 0},{description: "X Domain Controller",path: "/default/x-domain-controller",position: 0}],authorizations: { },info: {contact: "xx...@xxxx.pl",description: "This is reference document for the REST API.",license: "Licencja...",licenseUrl: "http://www.xxxx.pl",termsOfServiceUrl: "My Apps API terms of service",title: "XXXX REST API 1.0"},swaggerVersion: "1.2"}java -jar modules/swagger-codegen-distribution/target/swagger-codegen-distribution-2.1.0-M1.jar -i http://127.0.0.1:8080/core/api-docs -l html -o test/
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
reading from http://127.0.0.1:8080/core/api-docs
reading from http://127.0.0.1:8080/core/api-docs
java.lang.RuntimeException: missing swagger input or config!
at com.wordnik.swagger.codegen.DefaultGenerator.generate(DefaultGenerator.java:31)
at com.wordnik.swagger.codegen.Codegen.main(Codegen.java:99)
java -jar modules/swagger-codegen-distribution/target/swagger-codegen-distribution-2.1.0-M1.jar -i /Users/rastabandita/Documents/swagger-codegen/modules/swagger-codegen/src/test/resources/1_2/petstore-1.2/api-docs -l html -o test/
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
reading from /Users/rastabandita/Documents/swagger-codegen/modules/swagger-codegen/src/test/resources/1_2/petstore-1.2/api-docs
reading from /Users/rastabandita/Documents/swagger-codegen/modules/swagger-codegen/src/test/resources/1_2/petstore-1.2/api-docs
java.lang.RuntimeException: missing swagger input or config!
at com.wordnik.swagger.codegen.DefaultGenerator.generate(DefaultGenerator.java:31)
at com.wordnik.swagger.codegen.Codegen.main(Codegen.java:99)
$ java -cp modules/swagger-codegen/target/*:modules/swagger-codegen/target/lib/* com.wordnik.swagger.codegen.Codegen -i modules/swagger-codegen/src/test/resources/1_2/petstore-1.2/api-docs -l html -o tmp
The only difference with doing this is, each of the libraries is kept separately as opposed to being smashed into an uber jar.
See issue here: https://github.com/swagger-api/swagger-codegen/issues/437
curl -X POST -H "content-type:application/json" -d '{"swaggerUrl" : "http://petstore.swagger.io/api/api-docs"}' http://generator.swagger.io/api/gen/clients/html