|
|
|
|
@ -4,6 +4,7 @@ import com.mfsys.common.configuration.constant.LoggerURI;
|
|
|
|
|
import com.mfsys.common.configuration.model.Logger;
|
|
|
|
|
import com.mfsys.common.configuration.service.LoggerService;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
@ -21,7 +22,9 @@ public class LoggerController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping(LoggerURI.GET_LOGS_BY_DATES)
|
|
|
|
|
public List<Logger> findLogsBetweenDates(@RequestParam LocalDate fromDate, @RequestParam LocalDate toDate) {
|
|
|
|
|
public List<Logger> findLogsBetweenDates(
|
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "dd-MM-yyyy") LocalDate fromDate,
|
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "dd-MM-yyyy") LocalDate toDate) {
|
|
|
|
|
return loggerService.findLogsBetweenDates(fromDate, toDate);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|