类 ApiListingBuilder
java.lang.Object
springfox.documentation.builders.ApiListingBuilder
-
构造器概要
构造器构造器说明ApiListingBuilder(com.google.common.collect.Ordering<ApiDescription> descriptionOrdering) Update the sorting order for api descriptions -
方法概要
修饰符和类型方法说明apis(List<ApiDescription> apis) Updates the apisapiVersion(String apiVersion) Updates the api versionappendConsumes(List<String> consumes) Appends to the exiting collection of supported media types this listing consumesappendProduces(List<String> produces) Appends to the exiting collection of supported media types this listing producesavailableTags(Set<Tag> availableTags) Globally configured tagsUpdates base path for the api listingbuild()Replaces the existing media types with new entries that this documentation consumesdescription(String description) Updates the descriptionUpdates the hostAdds to the models collectionposition(int position) Updates the position of the listingReplaces the existing media types with new entries that this documentation producesAppends to the exiting collection of supported protocolsresourcePath(String resourcePath) Updates resource path for the api listingsecurityReferences(List<SecurityReference> securityReferences) Updates the references to the security definitionsUpdates the tagsUpdates the tags.
-
构造器详细资料
-
ApiListingBuilder
Update the sorting order for api descriptions- 参数:
descriptionOrdering- - ordering for the api descriptions
-
-
方法详细资料
-
apiVersion
Updates the api version- 参数:
apiVersion- - api version- 返回:
- this
-
basePath
Updates base path for the api listing- 参数:
basePath- - base path- 返回:
- this
-
resourcePath
Updates resource path for the api listing- 参数:
resourcePath- - resource path- 返回:
- this
-
produces
Replaces the existing media types with new entries that this documentation produces- 参数:
mediaTypes- - new media types- 返回:
- this
-
consumes
Replaces the existing media types with new entries that this documentation consumes- 参数:
mediaTypes- - new media types- 返回:
- this
-
appendProduces
Appends to the exiting collection of supported media types this listing produces- 参数:
produces- - new media types- 返回:
- this
-
appendConsumes
Appends to the exiting collection of supported media types this listing consumes- 参数:
consumes- - new media types- 返回:
- this
-
host
Updates the host- 参数:
host- - new host- 返回:
- this
-
protocols
Appends to the exiting collection of supported protocols- 参数:
protocols- - new protocols- 返回:
- this
-
securityReferences
Updates the references to the security definitions- 参数:
securityReferences- - security definition references- 返回:
- this
-
apis
Updates the apis- 参数:
apis- - apis- 返回:
- this
-
models
Adds to the models collection- 参数:
models- - model entries by name- 返回:
- this
-
description
Updates the description- 参数:
description- - description of the api listing- 返回:
- this
-
position
Updates the position of the listing- 参数:
position- - position used to for sorting the listings- 返回:
- this
-
tagNames
Updates the tags- 参数:
tagNames- - just the tag names- 返回:
- this
-
tags
Updates the tags.- 参数:
tags- - Tag with name and description- 返回:
- - this BREAKING Change in 2.4.0
-
availableTags
Globally configured tags- 参数:
availableTags- - tags available for services and operations- 返回:
- this
-
build
-