... | ... | @@ -31,7 +31,7 @@ Here is the documentation to generate a server stub for a couple different frame |
|
|
```
|
|
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
|
|
-i http://petstore.swagger.io/v2/swagger.json \
|
|
|
-l erlang-server \
|
|
|
-g erlang-server \
|
|
|
-o samples/server/petstore/erlang
|
|
|
```
|
|
|
|
... | ... | @@ -43,7 +43,7 @@ cd openapi-generator |
|
|
mvn clean package
|
|
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
|
|
-i http://petstore.swagger.io/v2/swagger.json \
|
|
|
-l nodejs-server \
|
|
|
-g nodejs-server \
|
|
|
-o samples/server/petstore/nodejs
|
|
|
```
|
|
|
|
... | ... | @@ -55,7 +55,7 @@ cd openapi-generator |
|
|
mvn clean package
|
|
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
|
|
-i http://petstore.swagger.io/v2/swagger.json \
|
|
|
-l nodejs-server --additional-properties=googleCloudFunctions=true \
|
|
|
-g nodejs-server --additional-properties=googleCloudFunctions=true \
|
|
|
-o samples/server/petstore/nodejs-google-cloud-function
|
|
|
```
|
|
|
|
... | ... | @@ -69,7 +69,7 @@ cd openapi-generator |
|
|
mvn clean package
|
|
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
|
|
-i http://petstore.swagger.io/v2/swagger.json \
|
|
|
-l php-lumen \
|
|
|
-g php-lumen \
|
|
|
-o samples/server/petstore/php-lumen
|
|
|
```
|
|
|
|
... | ... | @@ -81,7 +81,7 @@ cd openapi-generator |
|
|
mvn clean package
|
|
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
|
|
-i http://petstore.swagger.io/v2/swagger.json \
|
|
|
-l php-slim \
|
|
|
-g php-slim \
|
|
|
-o samples/server/petstore/php-slim
|
|
|
```
|
|
|
|
... | ... | @@ -93,7 +93,7 @@ cd openapi-generator |
|
|
mvn clean package
|
|
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
|
|
-i http://petstore.swagger.io/v2/swagger.json \
|
|
|
-l php-silex \
|
|
|
-g php-silex \
|
|
|
-o samples/server/petstore/php-silex
|
|
|
```
|
|
|
|
... | ... | @@ -102,7 +102,7 @@ java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generat |
|
|
```
|
|
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
|
|
-i http://petstore.swagger.io/v2/swagger.json \
|
|
|
-l python-flask \
|
|
|
-g python-flask \
|
|
|
-o samples/server/petstore/flaskConnexion
|
|
|
```
|
|
|
|
... | ... | @@ -111,7 +111,7 @@ java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generat |
|
|
```
|
|
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
|
|
-i http://petstore.swagger.io/v2/swagger.json \
|
|
|
-l python-flask \
|
|
|
-g python-flask \
|
|
|
-o samples/server/petstore/flaskConnexion-python2 \
|
|
|
-D supportPython2=true
|
|
|
```
|
... | ... | @@ -121,7 +121,7 @@ java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generat |
|
|
```
|
|
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
|
|
-i http://petstore.swagger.io/v2/swagger.json \
|
|
|
-l rails5 \
|
|
|
-g rails5 \
|
|
|
-o samples/server/petstore/rails5
|
|
|
```
|
|
|
|
... | ... | @@ -130,7 +130,7 @@ java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generat |
|
|
```
|
|
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
|
|
-i http://petstore.swagger.io/v2/swagger.json \
|
|
|
-l sinatra \
|
|
|
-g sinatra \
|
|
|
-o samples/server/petstore/sinatra
|
|
|
```
|
|
|
|
... | ... | @@ -138,7 +138,7 @@ java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generat |
|
|
```
|
|
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
|
|
-i http://petstore.swagger.io/v2/swagger.json \
|
|
|
-l scalatra \
|
|
|
-g scalatra \
|
|
|
-o samples/server/petstore/scalatra
|
|
|
```
|
|
|
|
... | ... | @@ -146,7 +146,7 @@ java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generat |
|
|
```
|
|
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
|
|
-i http://petstore.swagger.io/v2/swagger.json \
|
|
|
-l jaxrs-spec \
|
|
|
-g jaxrs-spec \
|
|
|
-o samples/server/petstore/jaxrs-spec
|
|
|
```
|
|
|
|
... | ... | @@ -155,7 +155,7 @@ The default use Jersey 2.x |
|
|
```
|
|
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
|
|
-i http://petstore.swagger.io/v2/swagger.json \
|
|
|
-l jaxrs \
|
|
|
-g jaxrs \
|
|
|
-o samples/server/petstore/jaxrs/jersey2
|
|
|
```
|
|
|
|
... | ... | @@ -163,7 +163,7 @@ To use Jersey 1.x: |
|
|
```
|
|
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
|
|
-i http://petstore.swagger.io/v2/swagger.json \
|
|
|
-l jaxrs --library=jersey1 \
|
|
|
-g jaxrs --library=jersey1 \
|
|
|
-o samples/server/petstore/jaxrs/jersey1
|
|
|
```
|
|
|
|
... | ... | @@ -172,7 +172,7 @@ java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generat |
|
|
```
|
|
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
|
|
-i http://petstore.swagger.io/v2/swagger.json \
|
|
|
-l jaxrs-cxf \
|
|
|
-g jaxrs-cxf \
|
|
|
-o samples/server/petstore/jaxrs-cxf
|
|
|
```
|
|
|
|
... | ... | @@ -214,7 +214,7 @@ This is no longer necessary if you are using CXF >=v3.x |
|
|
```
|
|
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
|
|
-i http://petstore.swagger.io/v2/swagger.json \
|
|
|
-l jaxrs-resteasy \
|
|
|
-g jaxrs-resteasy \
|
|
|
-o samples/server/petstore/jaxrs-resteasy/default
|
|
|
```
|
|
|
|
... | ... | @@ -224,7 +224,7 @@ Since 2.2.2 |
|
|
```
|
|
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
|
|
-i http://petstore.swagger.io/v2/swagger.json \
|
|
|
-l jaxrs-resteasy-eap \
|
|
|
-g jaxrs-resteasy-eap \
|
|
|
-o samples/server/petstore/jaxrs-resteasy/eap
|
|
|
```
|
|
|
|
... | ... | @@ -240,7 +240,7 @@ The following features are supported using CLI-options: |
|
|
```
|
|
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
|
|
-i http://petstore.swagger.io/v2/swagger.json \
|
|
|
-l jaxrs-cxf-cdi \
|
|
|
-g jaxrs-cxf-cdi \
|
|
|
-o samples/server/petstore/jaxrs-cxf-cdi
|
|
|
```
|
|
|
|
... | ... | @@ -249,7 +249,7 @@ java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generat |
|
|
```
|
|
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
|
|
-i http://petstore.swagger.io/v2/swagger.json \
|
|
|
-l spring --library spring-mvc\
|
|
|
-g spring --library spring-mvc\
|
|
|
-o samples/server/petstore/spring-mvc
|
|
|
```
|
|
|
|
... | ... | @@ -258,7 +258,7 @@ java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generat |
|
|
```
|
|
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
|
|
-i http://petstore.swagger.io/v2/swagger.json \
|
|
|
-l spring \
|
|
|
-g spring \
|
|
|
-o samples/server/petstore/springboot
|
|
|
```
|
|
|
|
... | ... | @@ -282,7 +282,7 @@ SpringBoot listening on default port 8080 |
|
|
```
|
|
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
|
|
-i http://petstore.swagger.io/v2/swagger.json \
|
|
|
-l undertow \
|
|
|
-g undertow \
|
|
|
-o samples/server/petstore/undertow
|
|
|
```
|
|
|
|
... | ... | @@ -294,7 +294,7 @@ MSF4J generator uses java-msf4j as the default library |
|
|
```
|
|
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
|
|
-i http://petstore.swagger.io/v2/swagger.json \
|
|
|
-l msf4j \
|
|
|
-g msf4j \
|
|
|
-o samples/server/petstore/msf4j
|
|
|
```
|
|
|
|
... | ... | @@ -317,7 +317,7 @@ curl http://127.0.0.1:8080/pet/12 |
|
|
```
|
|
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
|
|
-i http://petstore.swagger.io/v2/swagger.json \
|
|
|
-l haskell-servant \
|
|
|
-g haskell-servant \
|
|
|
-o samples/server/petstore/haskell-servant
|
|
|
```
|
|
|
|
... | ... | @@ -326,7 +326,7 @@ java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generat |
|
|
```
|
|
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
|
|
-i http://petstore.swagger.io/v2/swagger.json \
|
|
|
-l aspnetcore \
|
|
|
-g aspnetcore \
|
|
|
-o samples/server/petstore/aspnet5
|
|
|
```
|
|
|
|
... | ... | @@ -344,7 +344,7 @@ cd openapi-generator |
|
|
mvn clean package
|
|
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
|
|
-i http://petstore.swagger.io/v2/swagger.json \
|
|
|
-l go-server \
|
|
|
-g go-server \
|
|
|
-o samples/server/petstore/go-server
|
|
|
```
|
|
|
|
... | ... | @@ -355,7 +355,7 @@ cd openapi-generator |
|
|
mvn clean package
|
|
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
|
|
-i http://petstore.swagger.io/v2/swagger.json \
|
|
|
-l nancyfx \
|
|
|
-g nancyfx \
|
|
|
-o samples/server/petstore/nancyfx
|
|
|
```
|
|
|
|
... | ... | |