|
| 1 | +# easy-yapi |
| 2 | + |
| 3 | +[](https://github.com/tangcent/easy-yapi/actions/workflows/ci.yml) |
| 4 | +[](https://codecov.io/gh/tangcent/easy-yapi) |
| 5 | +[](https://plugins.jetbrains.com/plugin/12458-easyyapi) |
| 6 | +[](https://plugins.jetbrains.com/plugin/12458-easyyapi) |
| 7 | +[](http://isitmaintained.com/project/tangcent/easy-yapi "Average time to resolve an issue") |
| 8 | +[](http://isitmaintained.com/project/tangcent/easy-yapi "Percentage of issues still open") |
| 9 | + |
| 10 | +[English](README.md) | 中文 |
| 11 | + |
| 12 | +## 功能特点 |
| 13 | + |
| 14 | +- [导出API文档](https://easyyapi.com/documents/use.html) |
| 15 | +- [发送API请求](http://easyyapi.com/documents/call.html) |
| 16 | + |
| 17 | +| | 支持 | 扩展支持 | |
| 18 | +|------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------| |
| 19 | +| 语言 | java, kotlin | scala | |
| 20 | +| Web框架 | [spring](https://spring.io/), [feign](https://spring.io/projects/spring-cloud-openfeign), [jaxrs](https://www.oracle.com/technical-resources/articles/java/jax-rs.html) ([quarkus](https://quarkus.io/) 或 [jersey](https://eclipse-ee4j.github.io/jersey/)) | [dubbo](https://dubbo.apache.org) | |
| 21 | +| 导出渠道 | [Postman](https://easyyapi.com/documents/export2postman.html), [Yapi](https://easyyapi.com/documents/export2yapi.html), [Markdown](https://easyyapi.com/documents/export2markdown.html) , [Curl](https://curl.se/) , [HttpClient](https://plugins.jetbrains.com/plugin/13121-http-client) | - | |
| 22 | +| 支持的框架 | javax.validation, Jackson, Gson | [swagger](https://swagger.io/) | |
| 23 | + |
| 24 | +## AI增强 (Beta) |
| 25 | + |
| 26 | +EasyYAPI可以通过接入AI生成更好API文档: |
| 27 | + |
| 28 | +### 特性 |
| 29 | + |
| 30 | +- **API翻译**:导出API文档时, 自动将API文档翻译成指定语言。 |
| 31 | +- **方法返回类型推断**:使用AI分析方法代码并更准确地推断复杂返回类型,提高 API 文档的准确性。 |
| 32 | + |
| 33 | +### 配置 |
| 34 | + |
| 35 | +- **支持多种AI提供商**:可以配置AI提供商(OpenAI, DeepSeek 等)和模型(GPT-4, DeepSeek-V3 等)。 |
| 36 | +- **API响应缓存**:通过缓存相同请求的AI响应来优化性能。 |
| 37 | + |
| 38 | +要启用这些功能,请在IDEA中配置AI提供商。 |
| 39 | + |
| 40 | +## 导航 |
| 41 | + |
| 42 | +* [指南](https://easyyapi.com/documents/index.html) |
| 43 | +* [安装](https://easyyapi.com/documents/installation.html) |
| 44 | +* [使用](https://easyyapi.com/documents/use.html) |
| 45 | +* [设置](https://easyyapi.com/setting/index.html) |
| 46 | +* [示例](https://easyyapi.com/demo/index.html) |
| 47 | + |
| 48 | +## 运行应用 |
| 49 | + |
| 50 | +- `./gradlew :idea-plugin:runIde` 将运行一个安装了 EasyYapi 的 IDEA 实例。 |
| 51 | +- `./gradlew clean test` 将运行所有测试用例。 |
| 52 | + |
| 53 | +## 环境要求 |
| 54 | + |
| 55 | +- IDE: Intellij Idea Ultimate / Intellij Idea Community 2021.2.1 或更高版本 |
| 56 | +- JDK: 11 或更高版本 |
| 57 | + |
| 58 | +## 兼容性 |
| 59 | + |
| 60 | +| JDK | IDE | 状态 | |
| 61 | +|-----|----------|------| |
| 62 | +| 11 | 2021.2.1 | ✓ | |
| 63 | +| 15 | 2022.2.3 | ✓ | |
| 64 | +| 17 | 2023.1.3 | ✓ | |
| 65 | + |
| 66 | +## Javadoc |
| 67 | + |
| 68 | +- [wiki](https://en.wikipedia.org/wiki/Javadoc) |
| 69 | +- [oracle](https://docs.oracle.com/javase/8/docs/technotes/tools/windows/javadoc.html) |
| 70 | +- [百科](https://baike.baidu.com/item/javadoc) |
| 71 | + |
| 72 | +## KDoc |
| 73 | + |
| 74 | +- [kotlin-doc](https://kotlinlang.org/docs/reference/kotlin-doc.html) |
| 75 | + |
| 76 | +## 贡献 |
| 77 | + |
| 78 | +您可以通过提出 issue 或提交 pull request 来提出功能请求。 |
| 79 | + |
| 80 | +以下是贡献者列表: |
| 81 | + |
| 82 | +<a href="https://github.com/tangcent/easy-yapi/graphs/contributors"> |
| 83 | + <img src="https://contrib.rocks/image?repo=tangcent/easy-yapi" /> |
| 84 | +</a> |
0 commit comments