GET api/v{version}/venue
Get all the venues from the system.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
version | string |
None. |
Body Parameters
None.
Response Information
Resource Description
Collection of VenueViewModelName | Description | Type | Additional information |
---|---|---|---|
VenueId |
Unique id. |
integer |
None. |
Name |
Name of the venue. |
string |
None. |
Address |
The address 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. |
Attachment |
The link to the attachment |
string |
None. |
AttachmentContentType |
Type of attachment |
string |
None. |
AttachmentPhotographer |
Name of the photographer |
string |
None. |
AttachmentDescription |
Short description of the attachment |
string |
None. |
Meta |
Provides list of meta data about the entity |
Dictionary of string [key] and string [value] |
None. |
LastUpdated |
When is this entry updated |
date |
None. |
Response Formats
application/json, text/json
Sample:
[ { "VenueId": 1, "Name": "Ahoy Stadium", "Address": null, "City": "Rotterdam", "Area": "Netherlands", "CountryCode": "NLD", "Attachment": null, "AttachmentContentType": null, "AttachmentPhotographer": null, "AttachmentDescription": null, "Meta": null, "LastUpdated": "0001-01-01T00:00:00" }, { "VenueId": 2, "Name": "Ashton Gate", "Address": null, "City": "Bristol", "Area": "England", "CountryCode": "ENG", "Attachment": null, "AttachmentContentType": null, "AttachmentPhotographer": null, "AttachmentDescription": null, "Meta": null, "LastUpdated": "0001-01-01T00:00:00" } ]
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> <Address i:nil="true" /> <Area>Netherlands</Area> <Attachment i:nil="true" /> <AttachmentContentType i:nil="true" /> <AttachmentDescription i:nil="true" /> <AttachmentPhotographer i:nil="true" /> <City>Rotterdam</City> <CountryCode>NLD</CountryCode> <LastUpdated>0001-01-01T00:00:00</LastUpdated> <Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" /> <Name>Ahoy Stadium</Name> <VenueId>1</VenueId> </VenueViewModel> <VenueViewModel> <Address i:nil="true" /> <Area>England</Area> <Attachment i:nil="true" /> <AttachmentContentType i:nil="true" /> <AttachmentDescription i:nil="true" /> <AttachmentPhotographer i:nil="true" /> <City>Bristol</City> <CountryCode>ENG</CountryCode> <LastUpdated>0001-01-01T00:00:00</LastUpdated> <Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" /> <Name>Ashton Gate</Name> <VenueId>2</VenueId> </VenueViewModel> </ArrayOfVenueViewModel>