GET api/v{version}/matches

Get matches by a certain criteria. For example by competition, season, player, oponent or date.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

MatchSearchModel
NameDescriptionTypeAdditional information
CompetitionId

integer

None.

SeasonId

integer

None.

Player

integer

None.

Opponent

integer

None.

Date

date

None.

Request Formats

application/json, text/json

Sample:
{
  "CompetitionId": 1,
  "SeasonId": 1,
  "Player": 1,
  "Opponent": 1,
  "Date": "2019-06-17T21:18:34.1949644+02:00"
}

application/xml, text/xml

Sample:
<MatchSearchModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DartStat.Web.Areas.Apiv2.Controllers">
  <CompetitionId>1</CompetitionId>
  <Date>2019-06-17T21:18:34.1949644+02:00</Date>
  <Opponent>1</Opponent>
  <Player>1</Player>
  <SeasonId>1</SeasonId>
</MatchSearchModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of BasicMatch
NameDescriptionTypeAdditional information
MatchId

integer

None.

A

BasicPlayer

None.

B

BasicPlayer

None.

OfficialStartDate

date

None.

MatchContext

MatchContext

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "MatchId": 1,
    "A": {
      "PlayerId": 1,
      "Name": "sample string 7",
      "Score": 1,
      "Nationality": "sample string 2",
      "Url": "sample string 3"
    },
    "B": {
      "PlayerId": 1,
      "Name": "sample string 7",
      "Score": 1,
      "Nationality": "sample string 2",
      "Url": "sample string 3"
    },
    "OfficialStartDate": "2019-06-17T21:18:34.2074801+02:00",
    "MatchContext": {
      "Organisation": "sample string 1",
      "CompetitionId": 2,
      "Competition": "sample string 3",
      "SeasonId": 4,
      "Season": "sample string 5",
      "Round": "sample string 6",
      "Poule": "sample string 7"
    }
  },
  {
    "MatchId": 1,
    "A": {
      "PlayerId": 1,
      "Name": "sample string 7",
      "Score": 1,
      "Nationality": "sample string 2",
      "Url": "sample string 3"
    },
    "B": {
      "PlayerId": 1,
      "Name": "sample string 7",
      "Score": 1,
      "Nationality": "sample string 2",
      "Url": "sample string 3"
    },
    "OfficialStartDate": "2019-06-17T21:18:34.2074801+02:00",
    "MatchContext": {
      "Organisation": "sample string 1",
      "CompetitionId": 2,
      "Competition": "sample string 3",
      "SeasonId": 4,
      "Season": "sample string 5",
      "Round": "sample string 6",
      "Poule": "sample string 7"
    }
  }
]

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.