Class KeyDecryptionOracleStatusRestController

java.lang.Object
net.finmath.decryptionoracle.keys.controller.KeyDecryptionOracleStatusRestController

@ConditionalOnProperty(name="ethereum.listener.enabled", havingValue="true") @RequestMapping("/api/oracle") @RestController public class KeyDecryptionOracleStatusRestController extends Object
ReST Controller for oracle status. Displays the values of an oracle status service.
Author:
Christian Fries
  • Constructor Details

    • KeyDecryptionOracleStatusRestController

      public KeyDecryptionOracleStatusRestController(KeyDecryptionOracleStatusService statusService)
      Chreate the rest controller form a given statusService bean.
      Parameters:
      statusService - The instantiated statusService bean.
  • Method Details

    • status

      @GetMapping(path="/status", produces="application/json") public Map<String,Object> status() throws Exception
      Return the status.
      Returns:
      The status.
      Throws:
      Exception - Any exception.