use of io.github.jhipster.registry.web.rest.vm.EurekaVM in project jhipster-registry by jhipster.
the class EurekaResource method eureka.
/**
* GET /eureka/applications : get Eureka applications information
*/
@GetMapping("/eureka/applications")
@Timed
public ResponseEntity<EurekaVM> eureka() {
EurekaVM eurekaVM = new EurekaVM();
eurekaVM.setApplications(getApplications());
return new ResponseEntity<>(eurekaVM, HttpStatus.OK);
}
use of io.github.jhipster.registry.web.rest.vm.EurekaVM in project jhipster-registry by jhipster.
the class EurekaResource method eurekaStatus.
/**
* GET /eureka/status : get Eureka status
*/
@GetMapping("/eureka/status")
@Timed
public ResponseEntity<EurekaVM> eurekaStatus() {
EurekaVM eurekaVM = new EurekaVM();
eurekaVM.setStatus(getEurekaStatus());
return new ResponseEntity<>(eurekaVM, HttpStatus.OK);
}
Aggregations