Summary Table
Categories |
Total Count |
PII |
0 |
URL |
0 |
DNS |
0 |
EKL |
0 |
IP |
0 |
PORT |
0 |
VsID |
0 |
CF |
0 |
AI |
0 |
VPD |
0 |
PL |
0 |
Other |
0 |
File Content
package gov.va.med.pbm.ampl.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import gov.va.med.pbm.ampl.configuration.PomConfiguration;
import gov.va.med.pbm.ampl.constant.RestUriConstants;
/**
* The ApiStatusController class provides end points to the client which provide miscellaneous information about the
* application.
*
* @author Ian Meinert
*
*/
@RestController
@RequestMapping(value = "/info/", produces = { "application/json" })
public class ApiStatusController {
/**
* The {@link PomConfiguration} properties
*/
@Autowired
private PomConfiguration pomConfiguration;
/**
* This method is an end point for the client which returns the {@link PomConfiguration} in a readable JSon format.
*
* @return ResponseEntity
*/
@GetMapping(RestUriConstants.GET_BUILD_VERSION)
public ResponseEntity<Object> getApiBuildVersion() {
return new ResponseEntity<Object>(pomConfiguration, HttpStatus.OK);
}
}