class LegacyDetectorController {

    @PostMapping
    @ResponseStatus(HttpStatus.CREATED)
    public String createDetector(@Valid @RequestBody DetectorDocument document) {
        val uuid = detectorRepo.createDetector(document);
        return uuid.toString();
    }

}