ServerHttpControllerApi

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

Inheritors

Functions

Link copied to clipboard
@Post(value = "/servers/{serverId}/users")
abstract fun addUserToServer(@PathVariable serverId: String, principal: Principal): ServerApi.AddUserToServerApi.Response
Link copied to clipboard
@Post(value = "/servers/")
abstract fun createServer(@Body request: ServerApi.CreateServerApi.Request, principal: Principal): ServerApi.CreateServerApi.Response
Link copied to clipboard
@Delete(value = "/servers/{serverId}")
abstract fun deleteServer(@PathVariable serverId: String, principal: Principal): ServerApi.DeleteServerApi.Response
Link copied to clipboard
@Get(value = "/servers/")
abstract fun getServersFromUser(principal: Principal): ServerApi.GetServersFromUserApi.Response
Link copied to clipboard
@Get(value = "/servers/{serverId}/users")
abstract fun getServerUsers(@PathVariable serverId: String, principal: Principal): ServerApi.GetServerUsersApi.Response
Link copied to clipboard
@Delete(value = "/servers/{serverId}/users/{username}")
abstract fun kickUserFromServer(@PathVariable serverId: String, @PathVariable username: String, principal: Principal): ServerApi.KickUserFromServerApi.Response
Link copied to clipboard
@Delete(value = "/servers/{serverId}/users")
abstract fun removeUserFromServer(@PathVariable serverId: String, principal: Principal): ServerApi.RemoveUserFromServerApi.Response
Link copied to clipboard
@Put(value = "/servers/{serverId}")
abstract fun updateServer(@PathVariable serverId: String, @Body request: ServerApi.UpdateServerApi.Request, principal: Principal): ServerApi.UpdateServerApi.Response