Пример #1
0
 @RequestMapping(
     value = "/audits/all",
     method = RequestMethod.GET,
     produces = MediaType.APPLICATION_JSON_VALUE)
 public List<AuditEvent> findAll() {
   return auditEventService.findAll();
 }
Пример #2
0
 @RequestMapping(
     value = "/audits/byDates",
     method = RequestMethod.GET,
     produces = MediaType.APPLICATION_JSON_VALUE)
 public List<AuditEvent> findByDates(
     @RequestParam(value = "fromDate") LocalDateTime fromDate,
     @RequestParam(value = "toDate") LocalDateTime toDate) {
   return auditEventService.findByDates(fromDate, toDate);
 }