|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mangofactory.swagger.paths.SwaggerPathProvider
public abstract class SwaggerPathProvider
Constructor Summary | |
---|---|
SwaggerPathProvider()
|
Method Summary | |
---|---|
protected abstract java.lang.String |
applicationPath()
For relative SwaggerPathProviders this is typically '/' meaning relative to the swagger ui page serving the documentation. |
java.lang.String |
getApiResourcePrefix()
|
java.lang.String |
getApplicationBasePath()
|
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 swaggerGroup,
java.lang.String apiDeclaration)
Corresponds to the path attribute of a swagger Resource Object (within a Resource Listing). |
java.lang.String |
sanitiseUrl(java.lang.String candidate)
|
void |
setApiResourcePrefix(java.lang.String apiResourcePrefix)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SwaggerPathProvider()
Method Detail |
---|
public java.lang.String getApiResourcePrefix()
public void setApiResourcePrefix(java.lang.String apiResourcePrefix)
protected abstract java.lang.String applicationPath()
protected abstract java.lang.String getDocumentationPath()
public java.lang.String getApplicationBasePath()
public java.lang.String getOperationPath(java.lang.String operationPath)
operationPath
-
getApplicationBasePath()
public java.lang.String getResourceListingPath(java.lang.String swaggerGroup, java.lang.String apiDeclaration)
swaggerGroup
- the swagger 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
public java.lang.String sanitiseUrl(java.lang.String candidate)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |