GetChannelSessionApi

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

Inheritors

Types

Link copied to clipboard
sealed interface Errors
Link copied to clipboard
data class Response(val sessionId: String)

Functions

Link copied to clipboard
@Get(value = "/servers/{serverId}/channels/{channelId}/session")
@Status(value = HttpStatus.OK)
abstract fun get(principal: Principal, @PathVariable serverId: String, @PathVariable channelId: String): GetChannelSessionApi.Response
Link copied to clipboard
@Status(value = HttpStatus.NOT_FOUND)
open fun onChannelNotFound(exception: ServerErrors.ChannelNotInServer, @PathVariable serverId: String, @PathVariable channelId: String): GetChannelSessionApi.Errors.ChannelNotFound
Link copied to clipboard
@Status(value = HttpStatus.NOT_FOUND)
open fun onServerNotFound(exception: ServerErrors.ServerNotFound, @PathVariable serverId: String): GetChannelSessionApi.Errors.ServerNotFound
Link copied to clipboard
@Status(value = HttpStatus.FORBIDDEN)
open fun onUserNotAllowed(exception: ServerErrors.UserNotInServer, @PathVariable serverId: String, @PathVariable channelId: String): GetChannelSessionApi.Errors.UserNotAllowed