GET api/v{version}/venue

Get all the venues from the system.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

None.

Response Information

Resource Description

Collection of VenueViewModel
NameDescriptionTypeAdditional information
VenueId

Unique id.

integer

None.

Name

Name of the venue.

string

None.

City

The location of the venue.

string

None.

Area

The country of the venue.

string

None.

CountryCode

A three letter country code.

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "VenueId": 1,
    "Name": "Ahoy Stadium",
    "City": "Rotterdam",
    "Area": "Netherlands",
    "CountryCode": "NLD"
  },
  {
    "VenueId": 2,
    "Name": "Ashton Gate",
    "City": "Bristol",
    "Area": "England",
    "CountryCode": "ENG"
  }
]

application/xml, text/xml

Sample:
<ArrayOfVenueViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DartStat.Web.Areas.Apiv2.Models">
  <VenueViewModel>
    <Area>Netherlands</Area>
    <City>Rotterdam</City>
    <CountryCode>NLD</CountryCode>
    <Name>Ahoy Stadium</Name>
    <VenueId>1</VenueId>
  </VenueViewModel>
  <VenueViewModel>
    <Area>England</Area>
    <City>Bristol</City>
    <CountryCode>ENG</CountryCode>
    <Name>Ashton Gate</Name>
    <VenueId>2</VenueId>
  </VenueViewModel>
</ArrayOfVenueViewModel>