GET api/Associations

Gets a list of associations.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

A list of records.

Collection of Association
NameDescriptionTypeAdditional information
AssociationId

Gets or sets the association internal database id.

integer

None.

Code

Gets or sets the country code. This is the three letter code according to the ISO 3166 standard.

string

Required

String length: inclusive between 0 and 3

Name

Gets or sets the name of the association.

string

Required

FlagFileName

Gets or sets the name of the flag file (on the results web site).

string

None.

FlagFileX

Gets or sets the flag file X dimension (on the results web site).

integer

None.

FlagFileY

Gets or sets the flag file Y dimension (on the results web site).

integer

None.

StartDate

Gets or sets the date (year) when the association joined the WCF

date

Data type: Date

EndDate

Gets or sets the end date (the date when the association left the WCF).

date

Data type: Date

OfficialName

Gets or sets the official name of the association (from a WCF point of view)

string

None.

Links

Gets the relation links.

Collection of EntityLink

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "AssociationId": 1,
    "Code": "sample string 2",
    "Name": "sample string 3",
    "FlagFileName": "sample string 4",
    "FlagFileX": 1,
    "FlagFileY": 1,
    "StartDate": "2020-07-07T17:45:54.3144934+00:00",
    "EndDate": "2020-07-07T17:45:54.3144934+00:00",
    "OfficialName": "sample string 5",
    "Links": []
  },
  {
    "AssociationId": 1,
    "Code": "sample string 2",
    "Name": "sample string 3",
    "FlagFileName": "sample string 4",
    "FlagFileX": 1,
    "FlagFileY": 1,
    "StartDate": "2020-07-07T17:45:54.3144934+00:00",
    "EndDate": "2020-07-07T17:45:54.3144934+00:00",
    "OfficialName": "sample string 5",
    "Links": []
  }
]

application/xml, text/xml

Sample:
<ArrayOfAssociation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://worldcurling.org/statistics/data/association">
  <Association>
    <Links xmlns:d3p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
    <AssociationId>1</AssociationId>
    <Code>sample string 2</Code>
    <EndDate>2020-07-07T17:45:54.3144934+00:00</EndDate>
    <FlagFileName>sample string 4</FlagFileName>
    <FlagFileX>1</FlagFileX>
    <FlagFileY>1</FlagFileY>
    <Name>sample string 3</Name>
    <OfficialName>sample string 5</OfficialName>
    <StartDate>2020-07-07T17:45:54.3144934+00:00</StartDate>
  </Association>
  <Association>
    <Links xmlns:d3p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
    <AssociationId>1</AssociationId>
    <Code>sample string 2</Code>
    <EndDate>2020-07-07T17:45:54.3144934+00:00</EndDate>
    <FlagFileName>sample string 4</FlagFileName>
    <FlagFileX>1</FlagFileX>
    <FlagFileY>1</FlagFileY>
    <Name>sample string 3</Name>
    <OfficialName>sample string 5</OfficialName>
    <StartDate>2020-07-07T17:45:54.3144934+00:00</StartDate>
  </Association>
</ArrayOfAssociation>