class DetectorController {

    @PostMapping(path = "/toggleDetector")
    @ResponseStatus(HttpStatus.OK)
    public void toggleDetector(@RequestParam String uuid, @RequestParam Boolean enabled) {
        Assert.notNull(uuid, "uuid can't be null");
        Assert.notNull(enabled, "enabled can't be null");
        service.toggleDetector(uuid, enabled);
    }

}