Complete the Return

Report a typo

Select the option that returns the @RequestBody variable.

Java
@PutMapping("/employees/{id}")
public Employee updateEmployee(@PathVariable long id, @RequestBody Employee employee) {
    ______________;
}
Kotlin
@PutMapping("/employees/{id}")
fun updateEmployee(@PathVariable id: Long, @RequestBody employee: Employee): Employee {
    ______________
}
Select one option from the list
___

Create a free account to access the full topic