@RestController
@RequestMapping(value="/management/audits")
public class AuditResource
extends java.lang.Object
| Constructor and Description |
|---|
AuditResource(AuditEventService auditEventService) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<org.springframework.boot.actuate.audit.AuditEvent> |
get(java.lang.Long id)
GET /audits/:id : get an AuditEvent by id.
|
org.springframework.http.ResponseEntity<java.util.List<org.springframework.boot.actuate.audit.AuditEvent>> |
getAll(org.springframework.data.domain.Pageable pageable)
GET /audits : get a page of AuditEvents.
|
org.springframework.http.ResponseEntity<java.util.List<org.springframework.boot.actuate.audit.AuditEvent>> |
getByDates(java.time.LocalDate fromDate,
java.time.LocalDate toDate,
org.springframework.data.domain.Pageable pageable)
GET /audits : get a page of AuditEvents between the fromDate and toDate.
|
public AuditResource(AuditEventService auditEventService)
@GetMapping public org.springframework.http.ResponseEntity<java.util.List<org.springframework.boot.actuate.audit.AuditEvent>> getAll(org.springframework.data.domain.Pageable pageable)
pageable - the pagination information@GetMapping(params={"fromDate","toDate"})
public org.springframework.http.ResponseEntity<java.util.List<org.springframework.boot.actuate.audit.AuditEvent>> getByDates(@RequestParam(value="fromDate")
java.time.LocalDate fromDate,
@RequestParam(value="toDate")
java.time.LocalDate toDate,
org.springframework.data.domain.Pageable pageable)
fromDate - the start of the time period of AuditEvents to gettoDate - the end of the time period of AuditEvents to getpageable - the pagination information@GetMapping(value="/{id:.+}")
public org.springframework.http.ResponseEntity<org.springframework.boot.actuate.audit.AuditEvent> get(@PathVariable
java.lang.Long id)
id - the id of the entity to getCopyright © 2017 Osgiliath. All rights reserved.