[master | DONE | CHANGED]: Add actuator and remove health_check.
This commit is contained in:
parent
793e633bd7
commit
c9f4fd4c23
4
pom.xml
4
pom.xml
|
|
@ -4,7 +4,7 @@
|
|||
<parent>
|
||||
<groupId>eu.dnetlib</groupId>
|
||||
<artifactId>uoa-spring-boot-parent</artifactId>
|
||||
<version>2.0.3</version>
|
||||
<version>2.1.0</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>uoa-user-management</artifactId>
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
<dependency>
|
||||
<groupId>eu.dnetlib</groupId>
|
||||
<artifactId>uoa-authorization-library</artifactId>
|
||||
<version>3.0.5</version>
|
||||
<version>3.0.6</version>
|
||||
<classifier>redis</classifier>
|
||||
</dependency>
|
||||
<!-- PostgresSQL -->
|
||||
|
|
|
|||
|
|
@ -24,14 +24,14 @@ public class HealthCheckDeployController {
|
|||
this.service = service;
|
||||
}
|
||||
|
||||
@RequestMapping(value = {"","/", "/health_check"}, method = RequestMethod.GET)
|
||||
@RequestMapping(value = {"","/"}, method = RequestMethod.GET)
|
||||
public ResponseEntity<String> hello() {
|
||||
log.debug("Hello from uoa-user-management!");
|
||||
return ResponseEntity.ok("Hello from uoa-user-management!");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAnyAuthority(@AuthorizationService.PORTAL_ADMIN)")
|
||||
@RequestMapping(value = "/health_check/advanced", method = RequestMethod.GET)
|
||||
@RequestMapping(value = "/configuration", method = RequestMethod.GET)
|
||||
public ResponseEntity<Map<String, String>> checkEverything() {
|
||||
return ResponseEntity.ok(this.service.getProperties());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
api.title = Uoa User Management
|
||||
api.description = Uoa User Management is a service which communicates with Role Management and provides method to invite userDetails to be members or managers of an OpenAIRE entity.
|
||||
api.version = ${project.version}
|
||||
|
||||
management.endpoints.web.exposure.include=health
|
||||
management.endpoint.health.show-details=always
|
||||
|
|
|
|||
Loading…
Reference in New Issue