Class VersionController
java.lang.Object
net.finmath.decryptionoracle.keys.controller.VersionController
@RestController
@ConditionalOnProperty(prefix="api.version",
name="enabled",
havingValue="true",
matchIfMissing=true)
public class VersionController
extends Object
Endpointing provind the version of the installed software
GET /version -> { group, artifact, name, version, time }
- Author:
- Christian Fries
-
Constructor Summary
ConstructorsConstructorDescriptionVersionController(org.springframework.beans.factory.ObjectProvider<org.springframework.boot.info.BuildProperties> buildProvider) Instanciate verion controller with a given provider of BuildProperties. -
Method Summary
Modifier and TypeMethodDescriptionReturn the version of the current software as key-value.
-
Constructor Details
-
VersionController
public VersionController(org.springframework.beans.factory.ObjectProvider<org.springframework.boot.info.BuildProperties> buildProvider) Instanciate verion controller with a given provider of BuildProperties. See config for the provider.- Parameters:
buildProvider- A provider of BuildProperties.
-
-
Method Details
-
getVersion
Return the version of the current software as key-value. If available, keys are "group", "artifact", "name", "version", "time".- Returns:
- Version information.
-