Package org.springdoc.core.versions
Class PathVersionStrategy
java.lang.Object
org.springdoc.core.versions.SpringDocVersionStrategy
org.springdoc.core.versions.PathVersionStrategy
The type Path version strategy.
- Author:
- bnasslahsen
-
Field Summary
Fields inherited from class org.springdoc.core.versions.SpringDocVersionStrategy
defaultVersion, version, versionDefaultMap -
Constructor Summary
ConstructorsConstructorDescriptionPathVersionStrategy(int pathSegmentIndex, String defaultVersion) Instantiates a new Path version strategy. -
Method Summary
Modifier and TypeMethodDescriptionintGets path segment index.updateOperationPath(String operationPath, String version) Gets operation path.Methods inherited from class org.springdoc.core.versions.SpringDocVersionStrategy
getVersion, getVersionDefaultMap, setVersion, updateQueryParams, updateVersion
-
Constructor Details
-
PathVersionStrategy
Instantiates a new Path version strategy.- Parameters:
pathSegmentIndex- the path segment index
-
-
Method Details
-
getPathSegmentIndex
public int getPathSegmentIndex()Gets path segment index.- Returns:
- the path segment index
-
updateOperationPath
Description copied from class:SpringDocVersionStrategyGets operation path.- Overrides:
updateOperationPathin classSpringDocVersionStrategy- Parameters:
operationPath- the operation pathversion- the version- Returns:
- the operation path
-