Giter Club home page Giter Club logo

swagger-more's Introduction

swagger-more

Build Status jdk1.8

About

​ 公司内部测试需要dubbo接口提供文档, 实习的闲暇之余有好奇Swagger2的代码,看看它怎么大致的流程如何,后面又希望能灵活调试 。由此想到基于springfox swagger2来实现一个类似swagger http文档的dubbo文档。

​ github上也有类似功能的项目, 不过项目存在问题并且作者也没有维护

UI

UI

依旧支持官方的swagger ui

UI页面支持

https://github.com/shuangbofu/swagger-more-portal

Features

  1. 自动生成dubbo接口文档,同springfox 的JSON API
  2. 接口支持调试,支持泛型调用,解决接口方法多对象传参以及方法重载的问题
  3. 支持javadoc生成接口信息的注解
  4. 兼容springfox swagger2的ui、提供一个符合java接口文档的新UI
  5. 兼容alibaba dubbo 和 apache dubbo

Dependencies

<dependencies>
    <dependency>
        <groupId>com.github.uhfun</groupId>
        <artifactId>swagger-more-annotations</artifactId>
        <version>1.0.2-SNAPSHOT</version>
    </dependency>
    <dependency>
         <groupId>com.github.uhfun</groupId>
        <artifactId>swagger-more-core</artifactId>
        <version>1.0.2-SNAPSHOT</version>
    </dependency>
</dependencies>

How to use

1.0.1-SNAPSHOT Demo 1.0.2-SNAPSHOT Demo 移步wiki or 博客

Versions

  • 1.0.2-SNAPSHOT

    1. 「 controller查找方法后调用 」改为「 根据dubbo service 生成 RequestMapping 」
    2. 「 controller参数解析 」改为 「 自定义HandlerMethodArgumentResolver, HandlerMethodReturnValueHandler 」
    3. 「 controller日志打印 」改为「 @service 注解切面日志 」
    4. 新增代理方法转换参数
  • 1.0.1-SNAPSHOT

    1. 修复tag为空
    2. 兼容alibaba dubbo 和 apache dubbo
    3. javadoc title为空异常
    4. 添加demo
  • 1.0.0

    1. 自动生成dubbo接口文档,同springfox 的JSON API
    2. 接口支持调试,支持泛型调用,解决接口方法多对象传参以及方法重载的问题
    3. 支持javadoc生成接口信息的注解
    4. 兼容springfox swagger2的ui、提供一个符合java接口文档的新UI

Copyright

Copyright (c) 2019 uhfun

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

swagger-more's People

Contributors

uhfun 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.