GET api/Reports/AssociationSummary/{associationId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
associationId

integer

Required

Body Parameters

None.

Response Information

Resource Description

AssociationsSummaryReport
NameDescriptionTypeAdditional information
Association

Gets or sets the association.

Association

None.

Data

Gets or sets the data for the report. One collection for each competition class

Collection of AssociationsSummaryList

None.

Response Formats

application/json, text/json

Sample:
{
  "Association": {
    "AssociationId": 1,
    "Code": "sample string 2",
    "Name": "sample string 3",
    "FlagFileName": "sample string 4",
    "FlagFileX": 1,
    "FlagFileY": 1,
    "StartDate": "2017-06-24T18:55:56.5698429+00:00",
    "EndDate": "2017-06-24T18:55:56.5698429+00:00",
    "OfficialName": "sample string 5",
    "Links": []
  },
  "Data": [
    {
      "Class": {
        "Id": 1,
        "Name": "sample string 2"
      },
      "Summary": [
        {
          "TournamentType": {
            "Type": 1,
            "Name": "sample string 2",
            "Code": "sample string 3",
            "IsActive": true,
            "ZoneType": 0,
            "Ends": 1,
            "SortOrder": 1,
            "Links": []
          },
          "Appearances": 1,
          "Best": 2,
          "Golds": 3,
          "Silvers": 4,
          "Bronzes": 5,
          "TournamentLosses": 6,
          "TournamentWins": 7
        },
        {
          "TournamentType": {
            "Type": 1,
            "Name": "sample string 2",
            "Code": "sample string 3",
            "IsActive": true,
            "ZoneType": 0,
            "Ends": 1,
            "SortOrder": 1,
            "Links": []
          },
          "Appearances": 1,
          "Best": 2,
          "Golds": 3,
          "Silvers": 4,
          "Bronzes": 5,
          "TournamentLosses": 6,
          "TournamentWins": 7
        }
      ]
    },
    {
      "Class": {
        "Id": 1,
        "Name": "sample string 2"
      },
      "Summary": [
        {
          "TournamentType": {
            "Type": 1,
            "Name": "sample string 2",
            "Code": "sample string 3",
            "IsActive": true,
            "ZoneType": 0,
            "Ends": 1,
            "SortOrder": 1,
            "Links": []
          },
          "Appearances": 1,
          "Best": 2,
          "Golds": 3,
          "Silvers": 4,
          "Bronzes": 5,
          "TournamentLosses": 6,
          "TournamentWins": 7
        },
        {
          "TournamentType": {
            "Type": 1,
            "Name": "sample string 2",
            "Code": "sample string 3",
            "IsActive": true,
            "ZoneType": 0,
            "Ends": 1,
            "SortOrder": 1,
            "Links": []
          },
          "Appearances": 1,
          "Best": 2,
          "Golds": 3,
          "Silvers": 4,
          "Bronzes": 5,
          "TournamentLosses": 6,
          "TournamentWins": 7
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<AssociationsSummaryReport xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WCF.Statistics.Entities.Reports">
  <Association xmlns:d2p1="http://worldcurling.org/statistics/data/association">
    <Links xmlns:d3p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
    <d2p1:AssociationId>1</d2p1:AssociationId>
    <d2p1:Code>sample string 2</d2p1:Code>
    <d2p1:EndDate>2017-06-24T18:55:56.5698429+00:00</d2p1:EndDate>
    <d2p1:FlagFileName>sample string 4</d2p1:FlagFileName>
    <d2p1:FlagFileX>1</d2p1:FlagFileX>
    <d2p1:FlagFileY>1</d2p1:FlagFileY>
    <d2p1:Name>sample string 3</d2p1:Name>
    <d2p1:OfficialName>sample string 5</d2p1:OfficialName>
    <d2p1:StartDate>2017-06-24T18:55:56.5698429+00:00</d2p1:StartDate>
  </Association>
  <Data>
    <AssociationsSummaryList>
      <Class xmlns:d4p1="http://worldcurling.org/statistics/data/competitionclass">
        <d4p1:Id>1</d4p1:Id>
        <d4p1:Name>sample string 2</d4p1:Name>
      </Class>
      <Summary>
        <AssociationsSummary>
          <Appearances>1</Appearances>
          <Best>2</Best>
          <Bronzes>5</Bronzes>
          <Golds>3</Golds>
          <Silvers>4</Silvers>
          <TournamentLosses>6</TournamentLosses>
          <TournamentType xmlns:d6p1="http://worldcurling.org/statistics/data/tournamenttype">
            <Links xmlns:d7p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
            <d6p1:Code>sample string 3</d6p1:Code>
            <d6p1:Ends>1</d6p1:Ends>
            <d6p1:IsActive>true</d6p1:IsActive>
            <d6p1:Name>sample string 2</d6p1:Name>
            <d6p1:SortOrder>1</d6p1:SortOrder>
            <d6p1:Type>1</d6p1:Type>
            <d6p1:ZoneType>All</d6p1:ZoneType>
          </TournamentType>
          <TournamentWins>7</TournamentWins>
        </AssociationsSummary>
        <AssociationsSummary>
          <Appearances>1</Appearances>
          <Best>2</Best>
          <Bronzes>5</Bronzes>
          <Golds>3</Golds>
          <Silvers>4</Silvers>
          <TournamentLosses>6</TournamentLosses>
          <TournamentType xmlns:d6p1="http://worldcurling.org/statistics/data/tournamenttype">
            <Links xmlns:d7p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
            <d6p1:Code>sample string 3</d6p1:Code>
            <d6p1:Ends>1</d6p1:Ends>
            <d6p1:IsActive>true</d6p1:IsActive>
            <d6p1:Name>sample string 2</d6p1:Name>
            <d6p1:SortOrder>1</d6p1:SortOrder>
            <d6p1:Type>1</d6p1:Type>
            <d6p1:ZoneType>All</d6p1:ZoneType>
          </TournamentType>
          <TournamentWins>7</TournamentWins>
        </AssociationsSummary>
      </Summary>
    </AssociationsSummaryList>
    <AssociationsSummaryList>
      <Class xmlns:d4p1="http://worldcurling.org/statistics/data/competitionclass">
        <d4p1:Id>1</d4p1:Id>
        <d4p1:Name>sample string 2</d4p1:Name>
      </Class>
      <Summary>
        <AssociationsSummary>
          <Appearances>1</Appearances>
          <Best>2</Best>
          <Bronzes>5</Bronzes>
          <Golds>3</Golds>
          <Silvers>4</Silvers>
          <TournamentLosses>6</TournamentLosses>
          <TournamentType xmlns:d6p1="http://worldcurling.org/statistics/data/tournamenttype">
            <Links xmlns:d7p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
            <d6p1:Code>sample string 3</d6p1:Code>
            <d6p1:Ends>1</d6p1:Ends>
            <d6p1:IsActive>true</d6p1:IsActive>
            <d6p1:Name>sample string 2</d6p1:Name>
            <d6p1:SortOrder>1</d6p1:SortOrder>
            <d6p1:Type>1</d6p1:Type>
            <d6p1:ZoneType>All</d6p1:ZoneType>
          </TournamentType>
          <TournamentWins>7</TournamentWins>
        </AssociationsSummary>
        <AssociationsSummary>
          <Appearances>1</Appearances>
          <Best>2</Best>
          <Bronzes>5</Bronzes>
          <Golds>3</Golds>
          <Silvers>4</Silvers>
          <TournamentLosses>6</TournamentLosses>
          <TournamentType xmlns:d6p1="http://worldcurling.org/statistics/data/tournamenttype">
            <Links xmlns:d7p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
            <d6p1:Code>sample string 3</d6p1:Code>
            <d6p1:Ends>1</d6p1:Ends>
            <d6p1:IsActive>true</d6p1:IsActive>
            <d6p1:Name>sample string 2</d6p1:Name>
            <d6p1:SortOrder>1</d6p1:SortOrder>
            <d6p1:Type>1</d6p1:Type>
            <d6p1:ZoneType>All</d6p1:ZoneType>
          </TournamentType>
          <TournamentWins>7</TournamentWins>
        </AssociationsSummary>
      </Summary>
    </AssociationsSummaryList>
  </Data>
</AssociationsSummaryReport>