class DetectorController {

    @GetMapping(path = "/getLastUsedDetectors", produces = "application/json")
    @ResponseStatus(HttpStatus.OK)
    public List<Detector> getLastUsedDetectors(@RequestParam int noOfDays) {
        return service.getLastUsedDetectors(noOfDays);
    }

}