create

@PostMapping(consumes = ["application/json"], produces = ["application/json"])
@ResponseStatus(code = HttpStatus.CREATED)
fun create(@RequestBody createDTO: CD): D(source)

Default implementation for creating a new entity from given create DTO

Return

DTO of the created entity

Parameters

createDTO

Create DTO containing data of the entity to create