Class HeartbeatController

java.lang.Object
com.unosquare.carmigo.controller.HeartbeatController

@RestController @RequestMapping("/v1/heartbeat") public class HeartbeatController extends Object
Handles Heartbeat API.
  • Constructor Details

    • HeartbeatController

      public HeartbeatController()
  • Method Details

    • heartbeat

      @GetMapping public org.springframework.http.ResponseEntity<Map<String,Boolean>> heartbeat()
      Verifies if services, this application is depended on, are up and running.
      Expect 200 OK otherwise 500 Internal Server Error.
      Returns:
      JSON listing the services.