ChannelHttpControllerApi

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

Inheritors

Functions

Link copied to clipboard
@Post(value = "/servers/{serverId}/channels")
abstract fun createChannel(@PathVariable serverId: String, @Body request: ChannelApi.CreateChannelApi.Request, principal: Principal): ChannelApi.CreateChannelApi.Response
Link copied to clipboard
@Delete(value = "/servers/{serverId}/channels/{channelId}")
abstract fun deleteChannel(@PathVariable serverId: String, @PathVariable channelId: String, principal: Principal): ChannelApi.DeleteChannelApi.Response
Link copied to clipboard
@Get(value = "/servers/{serverId}/channels/{channelId}/messages")
abstract fun getChannelMessages(@PathVariable serverId: String, @PathVariable channelId: String, @QueryValue from: Int, @QueryValue limit: Int, principal: Principal): ChannelApi.GetChannelMessagesApi.Response
Link copied to clipboard
@Get(value = "/servers/{serverId}/channels")
abstract fun getChannelsFromServer(@PathVariable serverId: String, principal: Principal): ChannelApi.GetChannelsFromServerApi.Response
Link copied to clipboard
@Post(value = "/servers/{serverId}/channels/{channelId}/messages")
abstract fun sendMessageToChannel(@PathVariable serverId: String, @PathVariable channelId: String, @Body request: ChannelApi.SendMessageToChannelApi.Request, principal: Principal): ChannelApi.SendMessageToChannelApi.Response
Link copied to clipboard
@Put(value = "/servers/{serverId}/channels/{channelId}")
abstract fun updateChannel(@PathVariable serverId: String, @PathVariable channelId: String, @Body request: ChannelApi.UpdateChannelApi.Request, principal: Principal): ChannelApi.UpdateChannelApi.Response