Implementing Put Requests

Report a typo

Select the option that completes the PUT request shown below.

Java
_________("/employees/{id}")
public void updateEmployee(@PathVariable long id, @RequestParam String name) {
    employeeMap.put(id, name);
}
Kotlin
_________("/employees/{id}")
fun updateEmployee(@PathVariable id: Long, @RequestParam name: String) {
    employeeMap[id] = name
}
Select one option from the list
___

Create a free account to access the full topic