đ Social API Endpoints
Complete RESTful API for social features (16 endpoints)
Clan Endpoints
POST
http://localhost:8006/clans
Create a new clan (automatically become leader)
GET
http://localhost:8006/clans
List all clans with filtering options
GET
http://localhost:8006/clans/rankings
Get clan rankings (sorted by total ELO)
GET
http://localhost:8006/clans/{id}
Get detailed clan information
PUT
http://localhost:8006/clans/{id}
Update clan details (leader/officer only)
POST
http://localhost:8006/clans/{id}/join
Join a clan (public clans only)
DELETE
http://localhost:8006/clans/{id}/leave
Leave your current clan
POST
http://localhost:8006/clans/{id}/invite
Invite a user to your clan
GET
http://localhost:8006/clans/{id}/members
List all clan members with roles
POST
http://localhost:8006/clans/{id}/members/{user_id}/promote
Promote/demote clan members (leader only)
GET
http://localhost:8006/users/me/clan
Get your current clan information
Friend Endpoints
POST
http://localhost:8006/friends/request
Send a friend request
PUT
http://localhost:8006/friends/{id}/accept
Accept a friend request
DELETE
http://localhost:8006/friends/{id}
Remove a friend or decline request
GET
http://localhost:8006/friends
List all friends and pending requests