:star::star::star: If you would like to contribute, please refer to guidelines and a list of open tasks.:star::star::star:
:notebook_with_decorative_cover: For more information, please refer to the Wiki page and FAQ :notebook_with_decorative_cover:
:warning: If the OpenAPI/Swagger spec is obtained from an untrusted source, please make sure you've reviewed the spec before using Swagger Codegen to generate the API client, server stub or documentation as code injection may occur :warning:
:rocket: ProductHunt: https://producthunt.com/posts/swagger-codegen :rocket:
:notebook_with_decorative_cover: The eBook A Beginner's Guide to Code Generation for REST APIs is a good starting point for beginners.
NOTE: version 2.X (io.swagger
) and 3.X (io.swagger.codegen.v3
) have different group ids.
2.X and 3.X version lines of Swagger Codegen are available; 2.X (master
branch) supports Swagger/OpenAPI version 2,
while 3.X (3.0.0
branch) supports OpenAPI version 3 (and version 2 via spec conversion to version 3).
Online generator of version 3.X supports both generation from Swagger/OpenAPI version 2 (by using engine + generators of 2.X) and version 3 specifications.
NOTE: this document refers to version 2.X, check here for 3.X.
master
branch)Swagger Codegen 2.X supports Swagger/OpenAPI version 2.
group id: io.swagger
maven central (maven plugin): https://mvnrepository.com/artifact/io.swagger/swagger-codegen-maven-plugin
dependency example:
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-codegen-maven-plugin</artifactId>
<version>2.4.43</version>
</dependency>
3.0.0
branch)Swagger Codegen 3.X supports OpenAPI version 3 (and version 2 via spec conversion to version 3) Online generator of version 3.X supports both generation from Swagger/OpenAPI version 2 (by using engine + generators of 2.X) and version 3 specifications.
group id: io.swagger.codegen.v3
maven central: https://mvnrepository.com/artifact/io.swagger.codegen.v3
dependency example:
<dependency>
<groupId>io.swagger.codegen.v3</groupId>
<artifactId>swagger-codegen-maven-plugin</artifactId>
<version>3.0.61</version>
</dependency>
This is the Swagger Codegen project, which allows generation of API client libraries (SDK generation), server stubs and documentation automatically given an OpenAPI Spec. Currently, the following languages/frameworks are supported:
Check out OpenAPI-Spec for additional information about the OpenAPI project.
The OpenAPI Specification has undergone 3 revisions since initial creation in 2010. The Swagger Codegen project has the following compatibilities with the OpenAPI Specification:
Swagger Codegen Version | Release Date | OpenAPI Spec compatibility | Notes |
---|---|---|---|
3.0.62-SNAPSHOT (current 3.0.0, upcoming minor release) SNAPSHOT | TBD | 1.0, 1.1, 1.2, 2.0, 3.0 | Minor release |
3.0.61 (current stable) | 2024-08-09 | 1.0, 1.1, 1.2, 2.0, 3.0 | tag v3.0.61 |
3.0.60 | 2024-08-01 | 1.0, 1.1, 1.2, 2.0, 3.0 | tag v3.0.60 |
3.0.59 | 2024-07-22 | 1.0, 1.1, 1.2, 2.0, 3.0 | tag v3.0.59 |
3.0.58 | 2024-07-08 | 1.0, 1.1, 1.2, 2.0, 3.0 | tag v3.0.58 |
3.0.57 | 2024-05-27 | 1.0, 1.1, 1.2, 2.0, 3.0 | tag v3.0.57 |
3.0.56 | 2024-05-10 | 1.0, 1.1, 1.2, 2.0, 3.0 | tag v3.0.56 |
3.0.55 | 2024-04-22 | 1.0, 1.1, 1.2, 2.0, 3.0 | tag v3.0.55 |
3.0.54 | 2024-02-19 | 1.0, 1.1, 1.2, 2.0, 3.0 | tag v3.0.54 |
3.0.53 | 2024-02-14 | 1.0, 1.1, 1.2, 2.0, 3.0 | tag v3.0.53 |
3.0.52 | 2023-12-30 | 1.0, 1.1, 1.2, 2.0, 3.0 | tag v3.0.52 |
3.0.51 | 2023-11-21 | 1.0, 1.1, 1.2, 2.0, 3.0 | tag v3.0.51 |
3.0.50 | 2023-10-26 | 1.0, 1.1, 1.2, 2.0, 3.0 | tag v3.0.50 |
3.0.49 | 2023-10-23 | 1.0, 1.1, 1.2, 2.0, 3.0 | tag v3.0.49 |
3.0.48 | 2023-10-19 | 1.0, 1.1, 1.2, 2.0, 3.0 | tag v3.0.48 |
3.0.47 | 2023-10-02 | 1.0, 1.1, 1.2, 2.0, 3.0 | tag v3.0.47 |
3.0.46 | 2023-06-07 | 1.0, 1.1, 1.2, 2.0, 3.0 | tag v3.0.46 |
3.0.45 | 2023-06-02 | 1.0, 1.1, 1.2, 2.0, 3.0 | tag v3.0.45 |
3.0.44 | 2023-05-23 | 1.0, 1.1, 1.2, 2.0, 3.0 | tag v3.0.44 |
3.0.43 | 2023-05-17 | 1.0, 1.1, 1.2, 2.0, 3.0 | [tag |
最强AI数据分析助手
小浣熊家族Raccoon,您的AI智能助手,致力于通过先进的人工智能技术,为用户提供高效、便捷的智能服务。无论是日常咨询还是专业问题解答,小浣熊都能以快速、准确的响应满足您的需求,让您的生活更加智能便捷。
像人一样思考的AI智能体
imini 是一款超级AI智能体,能根据人类指令,自主思考、自主完成、并且交付结果的AI智能体。
AI数字人视频创作平台
Keevx 一款开箱即用的AI数字人视频创作平台,广泛适用于电商广告、企业培训与社媒宣传,让全球企业与个人创作者无需拍摄剪辑,就能快速生成多语言、高质量的专业视频。
一站式AI创作平台
提供 AI 驱动的图片、视频生成及数字人等功能,助力创意创作
AI办公助手,复杂任务高效处理
AI办公助手,复杂任务高效处理。办公效率低?扣子空间AI助手支持播客生成、PPT制作、网页开发及报告写作,覆盖科研、商业、舆情等领域的专家Agent 7x24小时响应,生活工作无缝切换,提升50%效率!
AI辅助编程,代码自动修复
Trae是一种自适应的集成开发环境(IDE),通过自动化和多元协作改变开发流程。利用Trae,团队能够更快速、精确地编写和部署代码,从而提高编程效率和项目交付速度。Trae具备上下文感知和代码自动完成功能,是提升开发效率的理想工具。
AI小说写作助手,一站式润色、改写、扩写