User Routes
These are the API routes to do with the users on the project.
Create a new user
POST /user/new
This will create the user on the system with the provided information in the body.
Headers
Content-Type
application/json
Authorization
<key>
Body
userId
UUIDv4
Id of the user for the database
userDisplayName
string
Display name of the user in the server
userSteamId
bigint
The users steam64id
userDiscordId
bigint
The users discord id
usersFirstJoin
Date
The first date that the user joined
userLastJoin
Date
The last date that the user joined
userIpAddress
string
The users IP address that they have joined from
userHWID
string
The users HWID value of the computer they have joined from
Response
{
"created": boolean
}{
"error": {
"code": 400,
"message": "Could not create a new user account"
},
"catchError": "string"
}If authorization header not provided:
{
"error": {
"code": 403
"message": "Please specify an authorization key!"
}
}If invalid authorization key:
{
"error": {
"code": 403,
"message": "Invalid authorization Key!"
}
}Get From Discord Id
GET /user/discordId/[ Discord Id ]
This will return the a user value if available
Headers
Content-Type
application/json
Request
Discord Id
string
This is the users discord id
Response
If could find user:
If could not find user:
Get From Steam Id
GET /user/steamId/[ Steam Id ]
This will return the a user value if available
Headers
Content-Type
application/json
Request
Steam Id
bigint
This is the users steam64id
Response
If could find user:
If could not find user:
Get From User Id
GET /user/userId/[ User Id ]
This will return the a user value if available
Headers
Content-Type
application/json
Request
User Id
UUIDv4
This is the database id for the user
Response
If could find user:
If could not find user:
Does User With Discord Id Exist
GET /user/exists/discordId/[ Discord Id ]
This will return a boolean if the API can find a user with the discord id provided
Headers
Content-Type
application/json
Request
Discord Id
string
This is the users discord id
Response
Does User With Steam Id Exist
GET /user/exists/steamId/[ Steam Id ]
This will return a boolean if the API can find a user with the steam id provided
Headers
Content-Type
application/json
Request
Steam Id
bigint
This is the users steam64id
Response
Does User With User Id Exist
GET /user/exists/userId/[ User Id ]
This will return a boolean if the API can find a user with the user id provided
Headers
Content-Type
application/json
Request
User Id
UUIDv4
This is the database id for the user
Response
Update Last Join From Steam Id
POST /user/updateLastJoin/steamId/[ Steam Id ]
This method will update the users last join value from their steam64id
Headers
Content-Type
application/json
Authorization
<key>
Request
Steam Id
bigint
This is the users steam64id
Response
Update Last Join From User Id
GET /user/updateLastJoin/userId/[ User Id ]
This method will update the users last join value from their user Id
Headers
Content-Type
application/json
Authorization
<key>
Request
User Id
UUIDv4
This is the database id for the user
Response
Last updated