OpenAPI Generator - 根据 OpenAPI 规范自动生成代码


Apache-2.0
跨平台
Kotlin

软件简介

可以通过 OpenAPI Generator,在给定 OpenAPI 规范(v2, v3)的情况下自动生成 API 客户端库、server
stubs、文档以及配置。

目前支持以下语言/框架:

Languages/Frameworks
**API clients** **ActionScript** , **Ada** , **Apex** , **Bash** , **C#** (.net 2.0, 3.5 or later), **C++** (cpprest, Qt5, Tizen), **Clojure** , **Dart** , **Elixir** , **Elm** , **Eiffel** , **Erlang** , **Go** , **Groovy** , **Haskell** (http- client, Servant), **Java** (Jersey1.x, Jersey2.x, OkHttp, Retrofit1.x, Retrofit2.x, Feign, RestTemplate, RESTEasy, Vertx, Google API Client Library for Java, Rest-assured), **Kotlin** , **Lua** , **Node.js** (ES5, ES6, AngularJS with Google Closure Compiler annotations) **Objective-C** , **Perl** , **PHP** , **PowerShell** , **Python** , **R** , **Ruby** , **Rust** (rust, rust-server), **Scala** (akka, http4s, scalaz, swagger-async-httpclient), **Swift** (2.x, 3.x, 4.x), **Typescript** (AngularJS, Angular (2.x - 6.x), Aurelia, Fetch, Inversify, jQuery, Node)
**Server stubs** **Ada** , **C#** (ASP.NET Core, NancyFx), **C++** (Pistache, Restbed), **Erlang** , **Go** , **Haskell** (Servant), **Java** (MSF4J, Spring, Undertow, JAX-RS: CDI, CXF, Inflector, RestEasy, Play Framework, [PKMST](https://github.com/ProKarma-Inc/pkmst-getting-started-examples)), **Kotlin** , **PHP** (Lumen, Slim, Silex, [Symfony](https://symfony.com/), [Zend Expressive](https://github.com/zendframework/zend-expressive)), **Python** (Flask), **NodeJS** , **Ruby** (Sinatra, Rails5), **Rust** (rust- server), **Scala** ([Finch](https://github.com/finagle/finch), [Lagom](https://github.com/lagom/lagom), Scalatra)
**API documentation generators** **HTML** , **Confluence Wiki**
**Configuration files** [ **Apache2**](https://httpd.apache.org/)
**Others** **JMeter**