update

@PutMapping(path = ["/{id}"], consumes = ["application/json"], produces = ["application/json"])
open fun update(@PathVariable(value = "id") id: I, @RequestBody updateDTO: UD, @PathVariable pathVariables: Map<String, String>, request: HttpServletRequest): D(source)

Default implementation for updating an entity with given id with given update DTO data

Return

DTO of the updated entity

Parameters

id

Id of the entity to update

updateDTO

Update DTO containing data to be updated

pathVariables

Path variables of the request

request

HTTP request