[POST] /award-skin
Route Purpose:
This Route appends a skin ID to a player in the PlayerSkins table.
Input Parameters:
playerID(int): Unique identifier of the player.skinID(int): Unique identifier of the skin to be assigned.
Functionality:
Validates the
playerIDandskinID.Checks if the player already owns the skin.
Appends the
skinIDto thePlayerSkinstable for the givenplayerID.Ensures database integrity and prevents duplicates.
Example Usage:
AppendPlayerSkin(playerID: 1234, skinID: 7);Database Table Structure: PlayerSkins
Column
Type
Description
playerID
int
Unique player identifier
skinID
int
Unique skin identifier
Last updated