GET api/v{version}/schedule/tournament_by_rankings/{year}/{ranking}
Get the schedules of all the defined tournaments with a sepecifc ranking assigned
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
year |
the schedule year |
integer |
Required |
ranking |
the slug of the ranking |
string |
Required |
version | string |
None. |
Body Parameters
None.
Response Information
Resource Description
ScheduleTournamentViewModelName | Description | Type | Additional information |
---|---|---|---|
Tournaments | Collection of TournamentScheduleViewModel |
None. |
Response Formats
application/json, text/json
Sample:
{ "Tournaments": [ { "Tournament": "sample string 1", "Seasons": [ { "SeasonId": 1, "Name": "sample string 2", "Start": "2023-09-30T06:07:23.914208+02:00", "End": "2023-09-30T06:07:23.914208+02:00", "Venue": { "VenueId": 1, "City": "sample string 2", "Country": "sample string 3", "CountryCode": "sample string 4", "Name": "sample string 5" }, "Competition": { "CompetitionId": 1, "Name": "sample string 1" }, "Status": "sample string 3" }, { "SeasonId": 1, "Name": "sample string 2", "Start": "2023-09-30T06:07:23.914208+02:00", "End": "2023-09-30T06:07:23.914208+02:00", "Venue": { "VenueId": 1, "City": "sample string 2", "Country": "sample string 3", "CountryCode": "sample string 4", "Name": "sample string 5" }, "Competition": { "CompetitionId": 1, "Name": "sample string 1" }, "Status": "sample string 3" } ], "Start": "2023-09-30T06:07:23.914208+02:00", "End": "2023-09-30T06:07:23.914208+02:00" }, { "Tournament": "sample string 1", "Seasons": [ { "SeasonId": 1, "Name": "sample string 2", "Start": "2023-09-30T06:07:23.914208+02:00", "End": "2023-09-30T06:07:23.914208+02:00", "Venue": { "VenueId": 1, "City": "sample string 2", "Country": "sample string 3", "CountryCode": "sample string 4", "Name": "sample string 5" }, "Competition": { "CompetitionId": 1, "Name": "sample string 1" }, "Status": "sample string 3" }, { "SeasonId": 1, "Name": "sample string 2", "Start": "2023-09-30T06:07:23.914208+02:00", "End": "2023-09-30T06:07:23.914208+02:00", "Venue": { "VenueId": 1, "City": "sample string 2", "Country": "sample string 3", "CountryCode": "sample string 4", "Name": "sample string 5" }, "Competition": { "CompetitionId": 1, "Name": "sample string 1" }, "Status": "sample string 3" } ], "Start": "2023-09-30T06:07:23.914208+02:00", "End": "2023-09-30T06:07:23.914208+02:00" } ] }
application/xml, text/xml
Sample:
<ScheduleTournamentViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DartStat.Web.Areas.Apiv2.Models"> <Tournaments> <TournamentScheduleViewModel> <End>2023-09-30T06:07:23.914208+02:00</End> <Seasons> <SeasonScheduleViewModel> <End>2023-09-30T06:07:23.914208+02:00</End> <Name>sample string 2</Name> <SeasonId>1</SeasonId> <Start>2023-09-30T06:07:23.914208+02:00</Start> </SeasonScheduleViewModel> <SeasonScheduleViewModel> <End>2023-09-30T06:07:23.914208+02:00</End> <Name>sample string 2</Name> <SeasonId>1</SeasonId> <Start>2023-09-30T06:07:23.914208+02:00</Start> </SeasonScheduleViewModel> </Seasons> <Start>2023-09-30T06:07:23.914208+02:00</Start> <Tournament>sample string 1</Tournament> </TournamentScheduleViewModel> <TournamentScheduleViewModel> <End>2023-09-30T06:07:23.914208+02:00</End> <Seasons> <SeasonScheduleViewModel> <End>2023-09-30T06:07:23.914208+02:00</End> <Name>sample string 2</Name> <SeasonId>1</SeasonId> <Start>2023-09-30T06:07:23.914208+02:00</Start> </SeasonScheduleViewModel> <SeasonScheduleViewModel> <End>2023-09-30T06:07:23.914208+02:00</End> <Name>sample string 2</Name> <SeasonId>1</SeasonId> <Start>2023-09-30T06:07:23.914208+02:00</Start> </SeasonScheduleViewModel> </Seasons> <Start>2023-09-30T06:07:23.914208+02:00</Start> <Tournament>sample string 1</Tournament> </TournamentScheduleViewModel> </Tournaments> </ScheduleTournamentViewModel>