Swagger2word

一个Swagger API 文档 转 Word 文档的工具项目
Alternatives To Swagger2word
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Fastapi58,5571381,143a day ago147May 14, 2022530mitPython
FastAPI framework, high performance, easy to learn, fast to code, ready for production
Full Stack Fastapi Postgresql11,931
14 days ago215mitPython
Full stack, modern web application generator. Using FastAPI, PostgreSQL as database, Docker, automatic HTTPS and more.
Chancejs6,179
15 days ago161mitJavaScript
Chance - Random generator helper for JavaScript
Scalatra2,59825535 days ago22November 20, 201769otherScala
Tiny Scala high-performance, async web framework, inspired by Sinatra
Flask Restplus2,5588631192 years ago35August 12, 2019380otherPython
Fully featured framework for fast, easy and documented API development with Flask
Spectral1,9143216 days ago106October 07, 2021119apache-2.0TypeScript
A flexible JSON/YAML linter for creating automated style guides, with baked in support for OpenAPI v3.1, v3.0, and v2.0 as well as AsyncAPI v2.x.
Flask Restx1,8207421 days ago9September 01, 2021279otherPython
Fork of Flask-RESTPlus: Fully featured framework for fast, easy and documented API development with Flask
Datamodel Code Generator1,6292318 hours ago150May 27, 202270mitPython
Pydantic model and dataclasses.dataclass generator for easy conversion of JSON, OpenAPI, JSON Schema, and YAML data sources.
Spring Boot Jwt1,022
a year agomitJava
JWT auth service using Spring Boot, Spring Security and MySQL
Swagger2word906
2 years ago32apache-2.0Java
一个Swagger API 文档 转 Word 文档的工具项目
Alternatives To Swagger2word
Select To Compare


Alternative Project Comparisons
Readme

使用步骤(Google Chrome)

  1. 启动工程,访问地址: http://127.0.0.1:8080/swagger-ui.html
  2. swagger2Word 提供了多种方式生成 word 文档,可以通过 swagger json 的资源地址,例如:https://petstore.swagger.io/v2/swagger.json ;可以通过上传 json 文件;甚至可以直接输入 json 字符串。
    Image text
  3. 生成的 WORD 示例:
    Image text



--------------版本迭代历程,感谢各位小伙伴的支持--------------

版本: SwaggerToWord 1.0 (2018-01-18)

  1. 一个Swagger API 文档转 Word 文档的工具项目
  2. 项目想法和说明可以参考:http://www.cnblogs.com/jmcui/p/8298823.html

版本:SwaggerToWord 1.1 (2018-02-11)

  1. 替换 HttpClient 工具类以适配更多的Restful服务。
  2. 把 json 示例文件替换成官方的示例文件。
  3. 更改写死的模板。让生成的 word 的内容都从 Swagger api 中来。

版本:SwaggerToWord 1.2 (2018-06-21)

  1. 引入了 Spring 的 RestTemplate 取代 HttpClients 以支持更多的 Restful 请求。
  2. 命名规范以及增加异常处理,对于无法处理的HTTP请求返回空字符串。
  3. 修改之前导入data.josn的方式,变成 restTemplate.getForObject("SwaggerJson的url地址",Map.class) 的动态获取方式。

版本:SwaggerToWord 1.3 (2019-06-12)

  1. Spring 框架向 SpringBoot 升级。
  2. thymeleaf 取代 jsp模板。

版本:SwaggerToWord 1.4 (2019-08-02)

  1. 取消 HttpClient 的请求方式去获得返回值,改由从 Swagger Json 文件中直接读取
  2. 针对 application/json 请求方式的入参做渲染
  3. 对于文字过多导致 HTML table 变形做适配
  4. 真诚感谢 fpzhan 的代码贡献。
版本: SwaggerToWord 1.4.1 (2019-09-25)
  1. 修复当请求参数为@RequestBody 时,参数类型显示不正确问题。
  2. 新增直接从请求路径中获取 Swagger JSON,多项目下API文档生成。
  3. 解决中文乱码问题。
  4. 真诚感谢 NealLemon 的代码贡献。
版本: SwaggerToWord 1.4.2 (2019-10-11)
  1. 增加一键下载doc文件文件的方式。
  2. 真诚感谢 benwudan 的想法和代码贡献。

版本:SwaggerToWord 1.5 (2019-12-18)

  1. 代码梳理和页面美化。
  2. 真诚感谢 kevin4j 的代码贡献。
Popular Swagger Projects
Popular Json Projects
Popular Application Programming Interfaces Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Java
Json
Restful
Spring
Swagger
Http Client
Thymeleaf