Class AppInfoController

java.lang.Object
cf.maybelambda.httpvalidator.springboot.controller.AppInfoController

@RestController @CrossOrigin public class AppInfoController extends Object
Controller for providing status and last run information of the application.
  • Field Details

  • Constructor Details

    • AppInfoController

      public AppInfoController()
  • Method Details

    • informWebAppStatus

      @GetMapping("/api/status") public org.springframework.http.ResponseEntity<Map<String,String>> informWebAppStatus()
      Retrieves the current status of the web application. Body: datafile and config status (i.e. parsable / valid) and app's start time.
      Returns:
      ResponseEntity containing the status information.
    • informLastRunData

      @GetMapping("/api/validator/lastrun") public org.springframework.http.ResponseEntity<Map<String,String>> informLastRunData()
      Retrieves the information about the last run of the validation service. If no last run data is available, it returns a SERVICE UNAVAILABLE status with an error message.
      Returns:
      ResponseEntity containing the last run information or error message.