コード例 #1
0
 @RequestMapping(
     value = "/log/{name}",
     method = RequestMethod.GET,
     produces = MediaType.APPLICATION_JSON_VALUE)
 @ResponseBody
 public List<LogEvent> getLogEvent(@PathVariable String name) {
   return delegate.getLogEvents(name);
 }
コード例 #2
0
 @RequestMapping(
     value = "/log/{name}/{after}",
     method = RequestMethod.GET,
     produces = MediaType.APPLICATION_JSON_VALUE)
 @ResponseBody
 public List<LogEvent> getLogEvent(
     @PathVariable String name, @PathVariable @DateTimeFormat(iso = ISO.DATE_TIME) Date after) {
   return delegate.getLogEvents(name, after);
 }