public class DefaultPathProvider
extends java.lang.Object
implements springfox.documentation.PathProvider
| Constructor and Description |
|---|
DefaultPathProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getDocumentationPath()
The base path to the swagger api documentation.
|
java.lang.String |
getOperationPath(java.lang.String operationPath)
The relative path to the operation, from the basePath, which this operation describes.
|
java.lang.String |
getResourceListingPath(java.lang.String groupName,
java.lang.String apiDeclaration)
Corresponds to the path attribute of a swagger Resource Object (within a Resource Listing).
|
protected java.lang.String getDocumentationPath()
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"
public java.lang.String getOperationPath(java.lang.String operationPath)
Includes the apiResourcePrefix
getOperationPath in interface springfox.documentation.PathProvideroperationPath - operation pathpublic java.lang.String getResourceListingPath(java.lang.String groupName,
java.lang.String apiDeclaration)
This method builds a URL based off of
getResourceListingPath in interface springfox.documentation.PathProvidergroupName - the group name for this Resource Object e.g. 'default'apiDeclaration - the identifier for the api declaration e.g 'business-controller'by appending the swagger group and apiDeclaration