description:"Used to register a new user account. By default, newly created unverified accounts will be deleted after a while. To fully complete registration, an account verify request must be sent following the registration request."
description:"Get user information about one account by internal user account ID. REQUIRES: Authentication, GetUserById permission."
operationId:getUserById
parameters:
- in:path
name:userId
schema:
type:integer
required:true
description:Numeric internal ID of the user to get
responses:
"401":
description:Unauthorized
"400":
description:Invalid parameters
content:
application/json:
schema:
$ref:"#/components/schemas/CommonError"
"404":
description:User not found
content:
application/json:
schema:
$ref:"#/components/schemas/CommonError"
"200":
description:Successfully got user
content:
application/json:
schema:
$ref:"#/components/schemas/DetailedUser"
/users/uuid/{userUuid}:
get:
tags:
- users
summary:Get user by UUID
description:"Get user information about one account by public user account UUID. REQUIRES: Authentication, GetUserByUuid permission."
operationId:getUserByUuid
parameters:
- in:path
name:userUuid
schema:
type:string
required:true
description:UUID of user to get
responses:
"401":
description:Unauthorized
"400":
description:Invalid parameters
content:
application/json:
schema:
$ref:"#/components/schemas/CommonError"
"404":
description:User not found
content:
application/json:
schema:
$ref:"#/components/schemas/CommonError"
"200":
description:Successfully got user
content:
application/json:
schema:
$ref:"#/components/schemas/DetailedUser"
/users/self:
get:
tags:
- users
summary:Get own user by session
description:"Get user information about the account which was used to authenticate the request. REQUIRES: Authentication, GetOwnUser permission."
operationId:getOwnUser
responses:
"401":
description:Unauthorized
"200":
description:Successfully got user
content:
application/json:
schema:
$ref:"#/components/schemas/DetailedUser"
/friends/add:
post:
tags:
- friends
summary:Create a friend request
description:"Create (AKA send) a friend request to another user account. The request is sent from the account used to perform this POST to the provided target account. REQUIRES: Authentication, SendFriendRequest permission."
operationId:addFriend
requestBody:
$ref:"#/components/requestBodies/FriendAdd"
responses:
"401":
description:Unauthorized
"400":
description:User does not exist, Already friends with user or Request already sent
content:
application/json:
schema:
$ref:"#/components/schemas/CommonError"
"200":
description:Friend request added successfully
content:
application/json:
schema:
$ref:"#/components/schemas/CommonMessage"
/friends/accept:
post:
tags:
- friends
summary:Accept an incoming friend request
description:"Accept an incoming friend request to your user account, from another user account. The request is accepted by the account used to perform this POST request. REQUIRES: Authentication, AcceptFriendRequest permission."
operationId:acceptFriend
requestBody:
$ref:"#/components/requestBodies/FriendAccept"
responses:
"401":
description:Unauthorized
"400":
description:User does not exist, You are already friends with user or Friend request not found
content:
application/json:
schema:
$ref:"#/components/schemas/CommonError"
"200":
description:Friend request accepted successfully
content:
application/json:
schema:
$ref:"#/components/schemas/CommonMessage"
/friends:
get:
tags:
- friends
summary:Get current incoming friend requests
description:"Get all current incoming friend requests to the user account used to authorize this POST request. REQUIRES: Authentication, GetOwnFriendRequests permission."
operationId:getFriendRequests
responses:
"401":
description:Unauthorized
"200":
description:Retrieved all incoming friend requests successfully