Package org.powertac.visualizer.web.rest
Class AuditResource
- java.lang.Object
 - 
- org.powertac.visualizer.web.rest.AuditResource
 
 
- 
@RestController @RequestMapping("/management/audits") public class AuditResource extends ObjectREST controller for getting the audit events. 
- 
- 
Constructor Summary
Constructors Constructor Description AuditResource(AuditEventService auditEventService) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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. 
 - 
 
- 
- 
Constructor Detail
- 
AuditResource
public AuditResource(AuditEventService auditEventService)
 
 - 
 
- 
Method Detail
- 
getAll
@GetMapping public org.springframework.http.ResponseEntity<List<org.springframework.boot.actuate.audit.AuditEvent>> getAll(org.springframework.data.domain.Pageable pageable) throws URISyntaxException
GET /audits : get a page of AuditEvents.- Parameters:
 pageable- the pagination information- Returns:
 - the ResponseEntity with status 200 (OK) and the list of AuditEvents in body
 - Throws:
 URISyntaxException- if there is an error to generate the pagination HTTP headers
 
- 
getByDates
@GetMapping(params={"fromDate","toDate"}) public org.springframework.http.ResponseEntity<List<org.springframework.boot.actuate.audit.AuditEvent>> getByDates(@RequestParam("fromDate") LocalDate fromDate, @RequestParam("toDate") LocalDate toDate, org.springframework.data.domain.Pageable pageable) throws URISyntaxExceptionGET /audits : get a page of AuditEvents between the fromDate and toDate.- Parameters:
 fromDate- the start of the time period of AuditEvents to gettoDate- the end of the time period of AuditEvents to getpageable- the pagination information- Returns:
 - the ResponseEntity with status 200 (OK) and the list of AuditEvents in body
 - Throws:
 URISyntaxException- if there is an error to generate the pagination HTTP headers
 
- 
get
@GetMapping("/{id:.+}") public org.springframework.http.ResponseEntity<org.springframework.boot.actuate.audit.AuditEvent> get(@PathVariable Long id)GET /audits/:id : get an AuditEvent by id.- Parameters:
 id- the id of the entity to get- Returns:
 - the ResponseEntity with status 200 (OK) and the AuditEvent in body, or status 404 (Not Found)
 
 
 - 
 
 -