public abstract class AbstractPathProvider extends java.lang.Object implements PathProvider
Constructor and Description |
---|
AbstractPathProvider() |
Modifier and Type | Method and Description |
---|---|
protected abstract java.lang.String |
applicationPath()
For relative PathProviders this is typically '/' meaning relative to the swagger ui page serving the
documentation.
|
java.lang.String |
getApplicationBasePath()
Gets the application base path
|
protected abstract 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 abstract java.lang.String applicationPath()
protected abstract java.lang.String getDocumentationPath()
public java.lang.String getApplicationBasePath()
PathProvider
getApplicationBasePath
in interface PathProvider
public java.lang.String getOperationPath(java.lang.String operationPath)
getOperationPath
in interface PathProvider
operationPath
- getApplicationBasePath()
public java.lang.String getResourceListingPath(java.lang.String groupName, java.lang.String apiDeclaration)
getResourceListingPath
in interface PathProvider
groupName
- 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