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 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

      @GetMapping(value="/version", produces="application/json") public Map<String,Object> getVersion()
      Return the version of the current software as key-value. If available, keys are "group", "artifact", "name", "version", "time".
      Returns:
      Version information.