openapi-codegen

一个根据OpenAPI文档生成多种编程语言接口代码的工具,支持OpenAPI v2/v3,泛型解析,以及Go、TypeScript、Python、Swift、Kotlin和Java等语言。

Check out openapi-codegen on CurateClick

• Copy the embed code to showcase this product on your website

• Share on X to spread the word about this amazing tool

项目地址:https://github.com/otk-final/openapi-codegen 后端接口变更时需要多端同步更新,避免客户端手搓接口!- 支持openapi版本 v2 / v3- 支持泛型解析- 支持语言 go,ts,python,swift,kotlin,java<img width="754" alt="Image" src="https://github.com/user-attachments/assets/49176178-0b6a-4d23-9b34-d50a48ffa3ca" /><img width="1018" alt="Image" src="https://github.com/user-attachments/assets/aae38224-b2ed-4400-9e3c-d66b6d251c65" /><img width="695" alt="Image" src="https://github.com/user-attachments/assets/968151fe-6500-41de-9ebe-58425003b601" /><img width="669" alt="Image" src="https://github.com/user-attachments/assets/2def6e34-303f-49ea-a473-5e2c445b1804" /><img width="671" alt="Image" src="https://github.com/user-attachments/assets/8393ad78-372d-4ab9-9df5-cb7f6511a759" /><img width="706" alt="Image" src="https://github.com/user-attachments/assets/ce2dfeb0-1592-445a-89ac-4bae574ee618" />