GET api/v{version}/competition/details/{id}?translations={translations}

Get some more details about a competition.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

translations

boolean

Default value is False

version

string

None.

Body Parameters

None.

Response Information

Resource Description

CompetitionDetailViewModel
NameDescriptionTypeAdditional information
NumberOfSeasons

integer

None.

Description

string

None.

DescriptionTranslations

Dictionary of string [key] and string [value]

None.

Meta

Provides list of meta data about the entity

Dictionary of string [key] and string [value]

None.

AttachmentHeader

A header.

string

None.

AttachmentHeaderContentType

The content type of the header.

string

None.

TypeId

integer

None.

CompetitionId

integer

None.

Title

string

None.

Type

string

None.

Organisation

string

None.

OrganisationId

integer

None.

LevelOfDetail

string

None.

Labels

Collection of LabelViewModel

None.

Modified

date

None.

Group

string

None.

GroupId

integer

None.

Url

string

None.

Response Formats

application/json, text/json

Sample:
{
  "NumberOfSeasons": 1,
  "Description": "sample string 2",
  "DescriptionTranslations": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "Meta": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "TypeId": 1,
  "CompetitionId": 5,
  "Title": "sample string 6",
  "Type": "sample string 7",
  "Organisation": "sample string 8",
  "OrganisationId": 9,
  "LevelOfDetail": "sample string 10",
  "Labels": [
    {
      "LabelId": 1,
      "Name": "sample string 2",
      "Slug": "sample string 3"
    },
    {
      "LabelId": 1,
      "Name": "sample string 2",
      "Slug": "sample string 3"
    }
  ],
  "Modified": "2023-09-30T04:49:48.8466972+02:00",
  "Group": "sample string 12",
  "GroupId": 13,
  "Url": "sample string 14"
}

application/xml, text/xml

Sample:
<CompetitionDetailViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DartStat.Web.Areas.Apiv2.Models">
  <CompetitionId>5</CompetitionId>
  <Group>sample string 12</Group>
  <GroupId>13</GroupId>
  <Labels>
    <LabelViewModel>
      <LabelId>1</LabelId>
      <Name>sample string 2</Name>
      <Slug>sample string 3</Slug>
    </LabelViewModel>
    <LabelViewModel>
      <LabelId>1</LabelId>
      <Name>sample string 2</Name>
      <Slug>sample string 3</Slug>
    </LabelViewModel>
  </Labels>
  <LevelOfDetail>sample string 10</LevelOfDetail>
  <Modified>2023-09-30T04:49:48.8466972+02:00</Modified>
  <Organisation>sample string 8</Organisation>
  <OrganisationId>9</OrganisationId>
  <Title>sample string 6</Title>
  <Type>sample string 7</Type>
  <AttachmentHeader>sample string 3</AttachmentHeader>
  <AttachmentHeaderContentType>sample string 4</AttachmentHeaderContentType>
  <Description>sample string 2</Description>
  <DescriptionTranslations xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 3</d2p1:Key>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </DescriptionTranslations>
  <Meta xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 3</d2p1:Key>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Meta>
  <NumberOfSeasons>1</NumberOfSeasons>
</CompetitionDetailViewModel>