ProfileApi

@Secured(value = ["isAuthenticated()"])
interface ProfileApi

Inheritors

Types

Link copied to clipboard
sealed interface Errors
Link copied to clipboard
data class UpdateDescriptionRequest(val description: String?)
Link copied to clipboard
data class UpdateProfilePictureRequest(val profilePicture: String?)

Functions

Link copied to clipboard
@Status(value = HttpStatus.NOT_FOUND)
open fun onUserNotFound(error: UserError.UserNotFound): ProfileApi.Errors.UserNotFound
Link copied to clipboard
@Put(value = "/profile/description")
abstract fun updateDescription(principal: Principal, @Body request: ProfileApi.UpdateDescriptionRequest): UserDTO
Link copied to clipboard
@Put(value = "/profile/photo")
abstract fun updateProfilePicture(principal: Principal, @Body request: ProfileApi.UpdateProfilePictureRequest): UserDTO