hasProfilePicture

@GetMapping(value = "/get/{id}/has-profile-picture")
@NotNull
open fun hasProfilePicture(@Nullable @PathVariable id: @Nullable String): @NotNull ResponseEntity<HasProfilePictureResponse>

Verifies if a user has a profile picture based on their ID.

Return

ResponseEntity containing a HasProfilePictureResponse with the hasProfilePicture flag set to true if the user has a profile picture, or false otherwise

Parameters

id

user ID as a string path variable

See also

HasProfilePictureResponse
ResponseEntity
ProfilePictureOperations

Throws

if the provided id is not a valid numeric value