GET leagues/{id}
Return a specific league data object by league id
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
id | league id |
Define this parameter in the request URI. |
Response Information
Response body formats
application/json, text/json
Sample:
{ "id": "sample string 1", "name": "sample string 2", "logo": "sample string 3", "description": "sample string 4", "has_playoffs": true, "playoffs_list": [ { "id": "sample string 1", "name": "sample string 2" }, { "id": "sample string 1", "name": "sample string 2" }, { "id": "sample string 1", "name": "sample string 2" } ], "registration_start": "sample string 6", "registration_end": "sample string 7", "status": 0, "join_until": "sample string 8", "season_start": "sample string 9", "season_end": "sample string 10", "scheduling": 0, "show_waitlist": true, "waitlist_alias": "sample string 12", "min_player": 13, "allow_score_reporting": true, "charge_team": true, "charge_player": true, "team_payment_amount": 17.1, "player_payment_amount": 18.1, "cant_create_team_without_paying": true, "approve_team_after_payment": true, "restrict_team_pay": true, "restriction_message": "sample string 22", "player_cant_join_without_paying": true, "payment_instructions": "sample string 24", "sport": { "id": "sample string 1", "name": "sample string 2" }, "network": { "id": "sample string 1", "name": "sample string 2" } }
application/xml, text/xml
Sample:
<LeagueDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.API.DTO"> <allow_score_reporting>true</allow_score_reporting> <approve_team_after_payment>true</approve_team_after_payment> <cant_create_team_without_paying>true</cant_create_team_without_paying> <charge_player>true</charge_player> <charge_team>true</charge_team> <description>sample string 4</description> <has_playoffs>true</has_playoffs> <id>sample string 1</id> <join_until>sample string 8</join_until> <logo>sample string 3</logo> <min_player>13</min_player> <name>sample string 2</name> <network> <id>sample string 1</id> <name>sample string 2</name> </network> <payment_instructions>sample string 24</payment_instructions> <player_cant_join_without_paying>true</player_cant_join_without_paying> <player_payment_amount>18.1</player_payment_amount> <playoffs_list> <BasicInfoDto> <id>sample string 1</id> <name>sample string 2</name> </BasicInfoDto> <BasicInfoDto> <id>sample string 1</id> <name>sample string 2</name> </BasicInfoDto> <BasicInfoDto> <id>sample string 1</id> <name>sample string 2</name> </BasicInfoDto> </playoffs_list> <registration_end>sample string 7</registration_end> <registration_start>sample string 6</registration_start> <restrict_team_pay>true</restrict_team_pay> <restriction_message>sample string 22</restriction_message> <scheduling>roundrobin</scheduling> <season_end>sample string 10</season_end> <season_start>sample string 9</season_start> <show_waitlist>true</show_waitlist> <sport> <id>sample string 1</id> <name>sample string 2</name> </sport> <status>waitlist</status> <team_payment_amount>17.1</team_payment_amount> <waitlist_alias>sample string 12</waitlist_alias> </LeagueDto>
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="id" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="name" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="logo" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="description" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="has_playoffs" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="playoffs_list[0].id" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="playoffs_list[0].name" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="playoffs_list[1].id" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="playoffs_list[1].name" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="playoffs_list[2].id" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="playoffs_list[2].name" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="registration_start" sample string 6 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="registration_end" sample string 7 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="status" waitlist --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="join_until" sample string 8 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="season_start" sample string 9 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="season_end" sample string 10 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="scheduling" roundrobin --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="show_waitlist" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="waitlist_alias" sample string 12 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="min_player" 13 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="allow_score_reporting" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="charge_team" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="charge_player" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="team_payment_amount" 17.1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="player_payment_amount" 18.1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="cant_create_team_without_paying" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="approve_team_after_payment" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="restrict_team_pay" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="restriction_message" sample string 22 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="player_cant_join_without_paying" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="payment_instructions" sample string 24 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="sport.id" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="sport.name" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="network.id" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="network.name" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e--