Паральный запрос Spring Boot

@PostMapping("/api/foos")
@ResponseBody
public String addFoo(@RequestParam(name = "id") String fooId, @RequestParam(name = "name") String name) { 
    return "ID: " + fooId + " Name: " + name;
}
Hilarious Hornet