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