create

@PostMapping(consumes = ["application/json"], produces = ["application/json"])
@ResponseStatus(code = HttpStatus.CREATED)
open fun create(@RequestBody createDTO: CD, @PathVariable pathVariables: Map<String, String>, request: HttpServletRequest): 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

pathVariables

Path variables of the request

request

HTTP request