FriendshipHttpApi

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

Inheritors

Functions

Link copied to clipboard
@Post(value = "/friends/requests/accept/")
abstract fun acceptFriendshipRequest(@Body request: FriendshipApi.AcceptFriendshipRequest.Request, principal: Principal): FriendshipApi.AcceptFriendshipRequest.Response
Link copied to clipboard
@Post(value = "/friends/requests/decline/")
abstract fun declineFriendshipRequest(@Body request: FriendshipApi.DeclineFriendshipRequest.Request, principal: Principal): FriendshipApi.DeclineFriendshipRequest.Response
Link copied to clipboard
@Get(value = "/users/{friendUsername}/messages")
abstract fun getFriendshipMessages(@PathVariable friendUsername: String, @QueryValue from: Int, @QueryValue limit: Int, principal: Principal): FriendshipApi.GetFriendshipMessages.Response
Link copied to clipboard
@Get(value = "/friends/requests/")
abstract fun getFriendshipRequests(principal: Principal): FriendshipApi.GetFriendshipRequests.Response
Link copied to clipboard
@Get(value = "/friends/")
abstract fun getFriendships(principal: Principal): FriendshipApi.GetFriendships.Response
Link copied to clipboard
@Post(value = "/friends/requests/send/")
abstract fun sendFriendshipRequest(@Body request: FriendshipApi.SendFriendshipRequest.Request, principal: Principal): FriendshipApi.SendFriendshipRequest.Response
Link copied to clipboard
@Post(value = "/users/{friendUsername}/messages")
abstract fun sendMessage(@PathVariable friendUsername: String, @Body request: FriendshipApi.SendMessage.Request, principal: Principal): FriendshipApi.SendMessage.Response