GET api/Rankings?categoryId={categoryId}&associationId={associationId}&rankingDate={rankingDate}

Gets the rankings based on the selection criterias.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
categoryId

The category identifier. one of

integer

Required

associationId

If the association Id is set, the rankings will be rretrieved for a specific association

integer

Default value is 0

rankingDate

The ranking date. If not set all available dates will be supplied.

date

None.

Body Parameters

None.

Response Information

Resource Description

A list of records.

Collection of CategoryRankings
NameDescriptionTypeAdditional information
Category

Gets or sets the category.

RankingCategory

None.

Rankings

Gets or sets the rankings.

Collection of Ranking

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Category": {
      "Id": 1,
      "Name": "sample string 2"
    },
    "Rankings": [
      {
        "RankingId": 1,
        "Annual": true,
        "Category": 3,
        "Position": 4,
        "Points": 5,
        "Association": {
          "AssociationId": 1,
          "Code": "sample string 2",
          "Name": "sample string 3",
          "FlagFileName": "sample string 4",
          "FlagFileX": 1,
          "FlagFileY": 1,
          "StartDate": "2020-07-03T20:16:34.8728874+00:00",
          "EndDate": "2020-07-03T20:16:34.8728874+00:00",
          "OfficialName": "sample string 5",
          "Links": []
        },
        "StartDate": "2020-07-03T20:16:34.8728874+00:00",
        "EndDate": "2020-07-03T20:16:34.8728874+00:00"
      },
      {
        "RankingId": 1,
        "Annual": true,
        "Category": 3,
        "Position": 4,
        "Points": 5,
        "Association": {
          "AssociationId": 1,
          "Code": "sample string 2",
          "Name": "sample string 3",
          "FlagFileName": "sample string 4",
          "FlagFileX": 1,
          "FlagFileY": 1,
          "StartDate": "2020-07-03T20:16:34.8728874+00:00",
          "EndDate": "2020-07-03T20:16:34.8728874+00:00",
          "OfficialName": "sample string 5",
          "Links": []
        },
        "StartDate": "2020-07-03T20:16:34.8728874+00:00",
        "EndDate": "2020-07-03T20:16:34.8728874+00:00"
      }
    ]
  },
  {
    "Category": {
      "Id": 1,
      "Name": "sample string 2"
    },
    "Rankings": [
      {
        "RankingId": 1,
        "Annual": true,
        "Category": 3,
        "Position": 4,
        "Points": 5,
        "Association": {
          "AssociationId": 1,
          "Code": "sample string 2",
          "Name": "sample string 3",
          "FlagFileName": "sample string 4",
          "FlagFileX": 1,
          "FlagFileY": 1,
          "StartDate": "2020-07-03T20:16:34.8728874+00:00",
          "EndDate": "2020-07-03T20:16:34.8728874+00:00",
          "OfficialName": "sample string 5",
          "Links": []
        },
        "StartDate": "2020-07-03T20:16:34.8728874+00:00",
        "EndDate": "2020-07-03T20:16:34.8728874+00:00"
      },
      {
        "RankingId": 1,
        "Annual": true,
        "Category": 3,
        "Position": 4,
        "Points": 5,
        "Association": {
          "AssociationId": 1,
          "Code": "sample string 2",
          "Name": "sample string 3",
          "FlagFileName": "sample string 4",
          "FlagFileX": 1,
          "FlagFileY": 1,
          "StartDate": "2020-07-03T20:16:34.8728874+00:00",
          "EndDate": "2020-07-03T20:16:34.8728874+00:00",
          "OfficialName": "sample string 5",
          "Links": []
        },
        "StartDate": "2020-07-03T20:16:34.8728874+00:00",
        "EndDate": "2020-07-03T20:16:34.8728874+00:00"
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfCategoryRankings xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WCF.Statistics.Entities">
  <CategoryRankings>
    <Category>
      <Id>1</Id>
      <Name>sample string 2</Name>
    </Category>
    <Rankings>
      <Ranking>
        <Annual>true</Annual>
        <Association xmlns:d5p1="http://worldcurling.org/statistics/data/association">
          <Links xmlns:d6p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
          <d5p1:AssociationId>1</d5p1:AssociationId>
          <d5p1:Code>sample string 2</d5p1:Code>
          <d5p1:EndDate>2020-07-03T20:16:34.8728874+00:00</d5p1:EndDate>
          <d5p1:FlagFileName>sample string 4</d5p1:FlagFileName>
          <d5p1:FlagFileX>1</d5p1:FlagFileX>
          <d5p1:FlagFileY>1</d5p1:FlagFileY>
          <d5p1:Name>sample string 3</d5p1:Name>
          <d5p1:OfficialName>sample string 5</d5p1:OfficialName>
          <d5p1:StartDate>2020-07-03T20:16:34.8728874+00:00</d5p1:StartDate>
        </Association>
        <Category>3</Category>
        <EndDate>2020-07-03T20:16:34.8728874+00:00</EndDate>
        <Points>5</Points>
        <Position>4</Position>
        <RankingId>1</RankingId>
        <StartDate>2020-07-03T20:16:34.8728874+00:00</StartDate>
      </Ranking>
      <Ranking>
        <Annual>true</Annual>
        <Association xmlns:d5p1="http://worldcurling.org/statistics/data/association">
          <Links xmlns:d6p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
          <d5p1:AssociationId>1</d5p1:AssociationId>
          <d5p1:Code>sample string 2</d5p1:Code>
          <d5p1:EndDate>2020-07-03T20:16:34.8728874+00:00</d5p1:EndDate>
          <d5p1:FlagFileName>sample string 4</d5p1:FlagFileName>
          <d5p1:FlagFileX>1</d5p1:FlagFileX>
          <d5p1:FlagFileY>1</d5p1:FlagFileY>
          <d5p1:Name>sample string 3</d5p1:Name>
          <d5p1:OfficialName>sample string 5</d5p1:OfficialName>
          <d5p1:StartDate>2020-07-03T20:16:34.8728874+00:00</d5p1:StartDate>
        </Association>
        <Category>3</Category>
        <EndDate>2020-07-03T20:16:34.8728874+00:00</EndDate>
        <Points>5</Points>
        <Position>4</Position>
        <RankingId>1</RankingId>
        <StartDate>2020-07-03T20:16:34.8728874+00:00</StartDate>
      </Ranking>
    </Rankings>
  </CategoryRankings>
  <CategoryRankings>
    <Category>
      <Id>1</Id>
      <Name>sample string 2</Name>
    </Category>
    <Rankings>
      <Ranking>
        <Annual>true</Annual>
        <Association xmlns:d5p1="http://worldcurling.org/statistics/data/association">
          <Links xmlns:d6p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
          <d5p1:AssociationId>1</d5p1:AssociationId>
          <d5p1:Code>sample string 2</d5p1:Code>
          <d5p1:EndDate>2020-07-03T20:16:34.8728874+00:00</d5p1:EndDate>
          <d5p1:FlagFileName>sample string 4</d5p1:FlagFileName>
          <d5p1:FlagFileX>1</d5p1:FlagFileX>
          <d5p1:FlagFileY>1</d5p1:FlagFileY>
          <d5p1:Name>sample string 3</d5p1:Name>
          <d5p1:OfficialName>sample string 5</d5p1:OfficialName>
          <d5p1:StartDate>2020-07-03T20:16:34.8728874+00:00</d5p1:StartDate>
        </Association>
        <Category>3</Category>
        <EndDate>2020-07-03T20:16:34.8728874+00:00</EndDate>
        <Points>5</Points>
        <Position>4</Position>
        <RankingId>1</RankingId>
        <StartDate>2020-07-03T20:16:34.8728874+00:00</StartDate>
      </Ranking>
      <Ranking>
        <Annual>true</Annual>
        <Association xmlns:d5p1="http://worldcurling.org/statistics/data/association">
          <Links xmlns:d6p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
          <d5p1:AssociationId>1</d5p1:AssociationId>
          <d5p1:Code>sample string 2</d5p1:Code>
          <d5p1:EndDate>2020-07-03T20:16:34.8728874+00:00</d5p1:EndDate>
          <d5p1:FlagFileName>sample string 4</d5p1:FlagFileName>
          <d5p1:FlagFileX>1</d5p1:FlagFileX>
          <d5p1:FlagFileY>1</d5p1:FlagFileY>
          <d5p1:Name>sample string 3</d5p1:Name>
          <d5p1:OfficialName>sample string 5</d5p1:OfficialName>
          <d5p1:StartDate>2020-07-03T20:16:34.8728874+00:00</d5p1:StartDate>
        </Association>
        <Category>3</Category>
        <EndDate>2020-07-03T20:16:34.8728874+00:00</EndDate>
        <Points>5</Points>
        <Position>4</Position>
        <RankingId>1</RankingId>
        <StartDate>2020-07-03T20:16:34.8728874+00:00</StartDate>
      </Ranking>
    </Rankings>
  </CategoryRankings>
</ArrayOfCategoryRankings>