可以通过OpenAPIGenerator,在给定OpenAPI规范(v2,v3)的情况下自动生成API客户端库、serverstubs、文档以及配置。
目前支持以下语言/框架:
Languages/FrameworksAPIclientsActionScript, Ada, Apex, Bash, C# (.net2.0,3.5orlater), 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,GoogleAPIClientLibraryforJava,Rest-assured), Kotlin, Lua, Node.js (ES5,ES6,AngularJSwithGoogleClosureCompilerannotations) 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)ServerstubsAda, C# (ASP.NETCore,NancyFx), C++ (Pistache,Restbed), Erlang, Go, Haskell (Servant), Java (MSF4J,Spring,Undertow,JAX-RS:CDI,CXF,Inflector,RestEasy,PlayFramework, PKMST), Kotlin, PHP (Lumen,Slim,Silex, Symfony, ZendExpressive), Python (Flask), NodeJS, Ruby (Sinatra,Rails5), Rust (rust-server), Scala (Finch, Lagom,Scalatra)APIdocumentationgeneratorsHTML, ConfluenceWikiConfigurationfilesApache2OthersJMeter
评论