@RestController @RequestMapping(value="/management/audits") public class AuditResource extends Object
| Constructor and Description |
|---|
AuditResource(AuditEventService auditEventService) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<org.springframework.boot.actuate.audit.AuditEvent> |
get(Long id)
GET /audits/:id : get an AuditEvent by id.
|
org.springframework.http.ResponseEntity<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<List<org.springframework.boot.actuate.audit.AuditEvent>> |
getByDates(LocalDate fromDate,
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<List<org.springframework.boot.actuate.audit.AuditEvent>> getAll(org.springframework.data.domain.Pageable pageable) throws URISyntaxException
pageable - the pagination informationURISyntaxException - if there is an error to generate the pagination HTTP headers@GetMapping(params={"fromDate","toDate"})
public org.springframework.http.ResponseEntity<List<org.springframework.boot.actuate.audit.AuditEvent>> getByDates(@RequestParam(value="fromDate")
LocalDate fromDate,
@RequestParam(value="toDate")
LocalDate toDate,
org.springframework.data.domain.Pageable pageable)
throws URISyntaxException
fromDate - the start of the time period of AuditEvents to gettoDate - the end of the time period of AuditEvents to getpageable - the pagination informationURISyntaxException - if there is an error to generate the pagination HTTP headers@GetMapping(value="/{id:.+}")
public org.springframework.http.ResponseEntity<org.springframework.boot.actuate.audit.AuditEvent> get(@PathVariable
Long id)
id - the id of the entity to getCopyright © 2017 Power TAC. All rights reserved.