Skip to content

API client generator HOWTO

Jim Schubert edited this page Jan 29, 2020 · 3 revisions

NOTE

This page is outdated, and superseded by the full doc site at https://openapi-generator.tech/


Here is a list of API clients available in OpenAPI Generator:

ada
ada-server
android
apache2
apex
aspnetcore
bash
clojure
cwiki
cpp-qt5
cpp-pistache-server
cpp-restbed-server
cpp-restsdk
cpp-tizen
csharp
csharp-dotnet2
csharp-nancyfx
dart
eiffel
elixir
elm
erlang-client
erlang-server
flash
finch
go
go-server
groovy
kotlin
kotlin-server
haskell-http-client
haskell
java
jaxrs-cxf-client
java-inflector
java-msf4j
java-pkmst
java-play-framework
java-undertow-server
java-vertx
jaxrs-cxf
jaxrs-cxf-cdi
jaxrs-jersey
jaxrs-resteasy
jaxrs-resteasy-eap
jaxrs-spec
javascript
javascript-closure-angular
jmeter
lua
nodejs-server
objc
openapi
openapi-yaml
perl
php
php-lumen
php-slim
php-silex
php-symfony
php-ze-ph
powershell
python
python-flask
r
ruby
ruby-on-rails
ruby-sinatra
rust
rust-server
scalatra
scala-akka
scala-httpclient
scala-gatling
scala-lagom-server
scalaz
spring
dynamic-html
html
html2
swift2-deprecated
swift3
swift4
typescript-angular
typescript-angularjs
typescript-aurelia
typescript-fetch
typescript-inversify
typescript-jquery
typescript-node

For command line usage, use -l to specify the API client. e.g.

git clone https://github.com/openapitools/openapi-generator.git
cd openapi-generator
mvn clean install
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
  -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml \
  -l jaxrs-cxf-client \
  -o /var/tmp/openapi-generator/jaxrs-cxf-client