class ProfileController {

    @PutMapping("/id/{userId}/update-user-profile")
    public RestResult<Void> updateUserProfile(@PathVariable("userId") Long userId,
                                              @RequestBody UserProfileResource profileDetails) {
        return profileService.updateUserProfile(userId, profileDetails).toPutResponse();
    }

}