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>