类 AbstractPathProvider
java.lang.Object
springfox.documentation.spring.web.paths.AbstractPathProvider
- 所有已实现的接口:
springfox.documentation.PathProvider
- 直接已知子类:
RelativePathProvider
public abstract class AbstractPathProvider
extends Object
implements springfox.documentation.PathProvider
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected abstract StringFor relative PathProviders this is typically '/' meaning relative to the swagger ui page serving the documentation.protected abstract StringThe base path to the swagger api documentation.getOperationPath(String operationPath) The relative path to the operation, from the basePath, which this operation describes.getResourceListingPath(String groupName, String apiDeclaration) Corresponds to the path attribute of a swagger Resource Object (within a Resource Listing).
-
构造器详细资料
-
AbstractPathProvider
public AbstractPathProvider()
-
-
方法详细资料
-
applicationPath
For relative PathProviders this is typically '/' meaning relative to the swagger ui page serving the documentation. The swagger specification recommends that this should be an absolute URL. Corresponds to the base path attribute of a swagger api declaration. This is the actual base path serving the api (not the swagger documentation)- 返回:
- the applications base uri
-
getDocumentationPath
The base path to the swagger api documentation. Typically docs are served from <yourApp>/api-docs so a relative resourceListing path will omit the api-docs segment. E.g. Relative: "path": "/" Absolute: "path": "http://localhost:8080/api-docs"- 返回:
- the documentation base path
-
getApplicationBasePath
- 指定者:
getApplicationBasePath在接口中springfox.documentation.PathProvider
-
getOperationPath
The relative path to the operation, from the basePath, which this operation describes. The value SHOULD be in a relative (URL) path format. Includes the apiResourcePrefix- 指定者:
getOperationPath在接口中springfox.documentation.PathProvider- 参数:
operationPath- operation path- 返回:
- the relative path to the api operation
- 另请参阅:
-
getResourceListingPath
Corresponds to the path attribute of a swagger Resource Object (within a Resource Listing). This method builds a URL based off of- 指定者:
getResourceListingPath在接口中springfox.documentation.PathProvider- 参数:
groupName- the group name for this Resource Object e.g. 'default'apiDeclaration- the identifier for the api declaration e.g 'business-controller'- 返回:
- the resource listing path
- 另请参阅:
-