GET moko/networks/{id}/sports

Get all sports in the network specified by id also contains league/division/team count

Request Information

Parameters

NameDescriptionAdditional information
id
network 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",
    "description": "sample string 3",
    "logo": "sample string 4",
    "sport_type": 5,
    "enable_club": true,
    "network": {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "league_count": 7,
    "division_count": 8,
    "team_count": 9
  },
  {
    "id": "sample string 1",
    "name": "sample string 2",
    "description": "sample string 3",
    "logo": "sample string 4",
    "sport_type": 5,
    "enable_club": true,
    "network": {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "league_count": 7,
    "division_count": 8,
    "team_count": 9
  },
  {
    "id": "sample string 1",
    "name": "sample string 2",
    "description": "sample string 3",
    "logo": "sample string 4",
    "sport_type": 5,
    "enable_club": true,
    "network": {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "league_count": 7,
    "division_count": 8,
    "team_count": 9
  }
]

application/xml, text/xml

Sample:
<ArrayOfMokoSportDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.API.DTO.Moko">
  <MokoSportDto>
    <description>sample string 3</description>
    <division_count>8</division_count>
    <enable_club>true</enable_club>
    <id>sample string 1</id>
    <league_count>7</league_count>
    <logo>sample string 4</logo>
    <name>sample string 2</name>
    <network xmlns:d3p1="http://schemas.datacontract.org/2004/07/imLeagues.API.DTO">
      <d3p1:id>sample string 1</d3p1:id>
      <d3p1:name>sample string 2</d3p1:name>
    </network>
    <sport_type>5</sport_type>
    <team_count>9</team_count>
  </MokoSportDto>
  <MokoSportDto>
    <description>sample string 3</description>
    <division_count>8</division_count>
    <enable_club>true</enable_club>
    <id>sample string 1</id>
    <league_count>7</league_count>
    <logo>sample string 4</logo>
    <name>sample string 2</name>
    <network xmlns:d3p1="http://schemas.datacontract.org/2004/07/imLeagues.API.DTO">
      <d3p1:id>sample string 1</d3p1:id>
      <d3p1:name>sample string 2</d3p1:name>
    </network>
    <sport_type>5</sport_type>
    <team_count>9</team_count>
  </MokoSportDto>
  <MokoSportDto>
    <description>sample string 3</description>
    <division_count>8</division_count>
    <enable_club>true</enable_club>
    <id>sample string 1</id>
    <league_count>7</league_count>
    <logo>sample string 4</logo>
    <name>sample string 2</name>
    <network xmlns:d3p1="http://schemas.datacontract.org/2004/07/imLeagues.API.DTO">
      <d3p1:id>sample string 1</d3p1:id>
      <d3p1:name>sample string 2</d3p1:name>
    </network>
    <sport_type>5</sport_type>
    <team_count>9</team_count>
  </MokoSportDto>
</ArrayOfMokoSportDto>

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].description"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].logo"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].sport_type"

5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].enable_club"

True
--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="[0].league_count"

7
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].division_count"

8
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].team_count"

9
--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].description"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].logo"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].sport_type"

5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].enable_club"

True
--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="[1].league_count"

7
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].division_count"

8
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].team_count"

9
--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].description"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].logo"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].sport_type"

5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].enable_club"

True
--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
Content-Disposition: form-data; name="[2].league_count"

7
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].division_count"

8
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].team_count"

9
--MultipartDataMediaFormatterBoundary1q2w3e--