Coder Social home page Coder Social logo

swaggertoword's Introduction

使用步骤:

1、修改resources目录下resources.properties文件的 swaggerUrl 为Swagger Json资源的url地址。
2、服务启动后:访问 http://host(主机):port(端口)/getWord,etc:http://localhost:8080/getWord
3、将生成的getWord文件,增加后缀名 getWord.doc 。

----------------------------------

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

简介:一个Swagger API 文档 转 Word 文档的工具项目

备注:项目想法和说明可以参考:http://www.cnblogs.com/jmcui/p/8298823.html

----------------------------------

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

更新说明:

已解决:
  • 替换HttpClient工具类以适配更多的Restful服务。
  • 把 json 示例文件替换成 官方的示例文件。
  • 更改写死的模板。让生成的 word 的内容都从Swagger api 中来。
待解决:
  • Http 诸多的参数请求形式,比如 header、body、file等 还没有去处理。
  • 用户自定义的对象还没有适配。

----------------------------------

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

更新说明:

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

swaggertoword's People

Contributors

jmcuixy avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.