// Path: src/main/java/org/paradise/Constants.java
// public class Constants {
// 
//     public static final String OK = "OK";
// 
//     public static final String CURRENT_VERSION = "/v1";
// 
//     public static final String HEALTH_CHECK_PATH = CURRENT_VERSION + "/health";
//     public static final String PDF_PATH = CURRENT_VERSION + "/pdf";
// 
//     public static final String REDIS_KEY = "camelKey";
//     public static final String REDIS_FIELD = "camelField";
// 
//     private Constants() {
//     }
// 
// }
// 
// Path: src/main/java/org/paradise/model/Status.java
// @JsonInclude(JsonInclude.Include.NON_NULL)
// public class Status {
// 
//     @NotNull
//     @JsonProperty("status")
//     private String status;
// 
//     public String getStatus() {
//         return status;
//     }
// 
//     public void setStatus(String status) {
//         this.status = status;
//     }
// 
// }


import org.paradise.Constants;
import org.paradise.model.Status;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
package org.paradise.controllers;




/**
 * Created by terrence on 9/06/2016.
 */
@RestController
public class HealthCheckController {

    private static final Logger LOG = LoggerFactory.getLogger(HealthCheckController.class);

    @RequestMapping(value = Constants.HEALTH_CHECK_PATH, method = RequestMethod.GET, produces = APPLICATION_JSON_VALUE)
    public ResponseEntity<Status> getHealthStatus() {

        LOG.debug("Check application health ...");

// Path: src/main/java/org/paradise/Constants.java
// public class Constants {
// 
//     public static final String OK = "OK";
// 
//     public static final String CURRENT_VERSION = "/v1";
// 
//     public static final String HEALTH_CHECK_PATH = CURRENT_VERSION + "/health";
//     public static final String PDF_PATH = CURRENT_VERSION + "/pdf";
// 
//     public static final String REDIS_KEY = "camelKey";
//     public static final String REDIS_FIELD = "camelField";
// 
//     private Constants() {
//     }
// 
// }
// 
// Path: src/main/java/org/paradise/model/Status.java
// @JsonInclude(JsonInclude.Include.NON_NULL)
// public class Status {
// 
//     @NotNull
//     @JsonProperty("status")
//     private String status;
// 
//     public String getStatus() {
//         return status;
//     }
// 
//     public void setStatus(String status) {
//         this.status = status;
//     }
// 
// }


// Path: src/main/java/org/paradise/controllers/HealthCheckController.java
import org.paradise.Constants;
import org.paradise.model.Status;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;

package org.paradise.controllers;




/**
 * Created by terrence on 9/06/2016.
 */
@RestController
public class HealthCheckController {

    private static final Logger LOG = LoggerFactory.getLogger(HealthCheckController.class);

    @RequestMapping(value = Constants.HEALTH_CHECK_PATH, method = RequestMethod.GET, produces = APPLICATION_JSON_VALUE)
    public ResponseEntity<Status> getHealthStatus() {

        LOG.debug("Check application health ...");

        Status status = new Status();