swagger-ui-layer

Pretty swagger ui api documentation

License

License

Categories

Categories

Swagger Program Interface REST Frameworks
GroupId

GroupId

com.github.ohcomeyes
ArtifactId

ArtifactId

swagger-ui-layer
Last Version

Last Version

1.2
Release Date

Release Date

Type

Type

jar
Description

Description

swagger-ui-layer
Pretty swagger ui api documentation
Project URL

Project URL

https://github.com/ohcomeyes/swagger-ui-layer
Source Code Management

Source Code Management

https://github.com/ohcomeyes/swagger-ui-layer

Download swagger-ui-layer

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.ohcomeyes/swagger-ui-layer/ -->
<dependency>
    <groupId>com.github.ohcomeyes</groupId>
    <artifactId>swagger-ui-layer</artifactId>
    <version>1.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.ohcomeyes/swagger-ui-layer/
implementation 'com.github.ohcomeyes:swagger-ui-layer:1.2'
// https://jarcasting.com/artifacts/com.github.ohcomeyes/swagger-ui-layer/
implementation ("com.github.ohcomeyes:swagger-ui-layer:1.2")
'com.github.ohcomeyes:swagger-ui-layer:jar:1.2'
<dependency org="com.github.ohcomeyes" name="swagger-ui-layer" rev="1.2">
  <artifact name="swagger-ui-layer" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.ohcomeyes', module='swagger-ui-layer', version='1.2')
)
libraryDependencies += "com.github.ohcomeyes" % "swagger-ui-layer" % "1.2"
[com.github.ohcomeyes/swagger-ui-layer "1.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

参考

之前使用swagger的时候就觉得界面不够友好,偶然发现了github上已经有小伙伴弄出来了

果断clone下来重新定制界面并发布到maven中央仓库,以备以后使用

小伙伴地址:https://github.com/caspar-chen/swagger-ui-layer

作用

swagger-ui-layer 是一个基于swagger的前端UI实现,是为了替换了默认的swagger-ui,让生成的文档更加友好和美观

swagger-ui-layer 要依赖swagger的注解功能,因为swagger-ui-layer 仅仅只是一个前端UI界面的实现,解析的数据来源于 /v2/api-docs

更新

接口展示增加排序,默认使用升序,按字典排序

如何使用

1、引入jar包

首先需要在你的 pom.xml 中引入swagger 和 swagger-ui-layer 最新版的jar包

swagger-ui-layer 最新版jar包地址:http://search.maven.org/#search%7Cga%7C1%7Ccom.github.ohcomeyes

<dependency>
  <groupId>com.github.ohcomeyes</groupId>
  <artifactId>swagger-ui-layer</artifactId>
  <version>${last-version}</version>
</dependency>
2、swagger使用

具体的注解用法可参阅互联网

3、查看结果

swagger-ui-layer 的默认访问地址是 http://${host}:${port}/api-docs.html

License

Apache License 2.0

Versions

Version
1.2
1.1