I have a spring rest end point which accepts a user object and returns another userobject as response. My controller method looks like:
@PostMapping public Us