![]() | |
The Team resource
Teams, or clans or clubs, are groups of players who play together against other teams, or individually against representatives of other teams. /teams (GET) GET: List all teams. The format is: <teams> <team name="$teamname"/> </teams> /teams/$teamname (GET, POST, PUT, DELETE) GET: List a team. The format is: <team name="$teamname"> <founder>$founder</founder> <foundingdate>$foundingdate</foundingdate> <fullname>$fullname</fullname> <homepage>$homepage</homepage> <teamplayer>$teamplayername</teamplayer> </team> POST: Create a team. The format is like the one for GET, with the exception of foundingdate and founder not being present, and team player assignments not yet done as well: <team name="$teamname"> <fullname>$fullname</fullname> <homepage>$homepage</homepage> </team>This operation needs authentication: HTTP username is $playername, HTTP password is $password. PUT: Update a team. The format is like the one for POST. This operation needs authentication: HTTP username is $playername, HTTP password is $password. DELETE: Remove a team. This operation needs authentication: HTTP username is $playername, HTTP password is $password. /teams/$teamname/$teamplayername (GET, POST, PUT, DELETE) GET: List a team's player. The format is: <teamplayer name="$teamplayername"> <role>$role</role> <entrydate>$entrydate</entrydate> </teamplayer>The role can be one of 'leader', 'vice' or 'member'. POST: Create a team member association. The format is like the one for GET, except for the entrydate (for which the current date is used). The player must already exist (see /players). This operation needs authentication: HTTP username is $playername, HTTP password is $password. PUT: Update a team member assocation. The format is like the one for POST. The player must already exist (see /players). This operation needs authentication: HTTP username is $playername, HTTP password is $password. DELETE: Remove a team member association. The player must already exist (see /players). This operation needs authentication: HTTP username is $playername, HTTP password is $password. |