swagger接口文档
引入依赖
4.4.2 版本开始拆分
<dependency>
<groupId>com.wueasy</groupId>
<artifactId>wueasy-cloud-web-swagger</artifactId>
<version>最新版本</version>
</dependency>
配置说明
enabled
:是否启用,默认false
title
:标题description
:描述version
:接口版本号host
:域地址,配置为网关的访问地址paramters
:通用参数集合name
:参数名description
:参数描述defaultValue
:默认值required
:是否必输true
是,false
不是,默认false
in
:参数类型header
,cookie
,body
,query
wueasy :
swagger:
enabled: true
title: OSAUTH统一授权认证系统
description: OSAUTH统一授权认证系统接口
servers:
- name: 测试接口
url: https://adminservlet.osauth.com/admin
description: 测试接口
contact:
name: wueasy
url: https://www.wueasy.com/
email: server@wueasy.com
license: 未经许可,任何人不得擅自(包括但不限于:以非法的方式复制、传播、展示、镜像、上载、下载)使用
licenseUrl: https://www.wueasy.com/authorization.html
termsOfServiceUrl: https://www.wueasy.com/
paramters:
- name: token
description: token
in: header