com.capitalone.dashboard.rest.PingController Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-audit Show documentation
Show all versions of api-audit Show documentation
Hygieia Audit Rest API Layer
package com.capitalone.dashboard.rest;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
import io.swagger.annotations.ApiOperation;
@RestController
public class PingController {
public PingController() {
}
@RequestMapping(value = "/ping", method = GET, produces = APPLICATION_JSON_VALUE)
@ApiOperation(value = "Ping Controller", notes = "This endpoint verifies from the web browser that the Audit API is running successfully.")
public ResponseEntity ping () {
return ResponseEntity
.status(HttpStatus.OK)
.body("hello audit");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy