| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Requires any of the permissions: | ReadData, Tickets.Add |
| GET | /Event/{Id} |
|---|
export class Event
{
public id?: number;
public name?: string;
public description?: string;
public externalReference?: string;
public timeOfEvent?: string;
public eventLocationId?: number;
public eventSeriesId?: number;
public eventOwnerId?: number;
public eventActive?: boolean;
public defaultValues?: string;
public externalReferenceType?: string;
public postponedNoDate?: boolean;
public awayTeamExternalId?: string;
public sportGenderId?: string;
public saleIsActive?: boolean;
public seatingImageUrl?: string;
public venueId?: number;
public awayTeamOwnerId?: number;
public detailedDescription?: string;
public imageUrl?: string;
public directAccessCode?: string;
public imageUrl2?: string;
public hideEvent?: boolean;
public ownerCardsNotAllowed?: boolean;
public endOfEvent?: string;
public endOfEventUTC?: string;
public timeZone?: string;
public timeOfEventUTC?: string;
public activeOrphan?: boolean;
public showFewTicketsLeft?: boolean;
public constructor(init?: Partial<Event>) { (Object as any).assign(this, init); }
}
export class EventResult
{
public item?: Event;
public statusCode?: number;
public message?: string;
public constructor(init?: Partial<EventResult>) { (Object as any).assign(this, init); }
}
export class EventGetRequest
{
public id?: number;
public constructor(init?: Partial<EventGetRequest>) { (Object as any).assign(this, init); }
}
TypeScript EventGetRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /Event/{Id} HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
item:
{
id: 0,
name: String,
description: String,
externalReference: String,
timeOfEvent: 0001-01-01,
eventLocationId: 0,
eventSeriesId: 0,
eventOwnerId: 0,
eventActive: False,
defaultValues: String,
externalReferenceType: String,
postponedNoDate: False,
awayTeamExternalId: String,
sportGenderId: String,
saleIsActive: False,
seatingImageUrl: String,
venueId: 0,
awayTeamOwnerId: 0,
detailedDescription: String,
imageUrl: String,
directAccessCode: String,
imageUrl2: String,
hideEvent: False,
ownerCardsNotAllowed: False,
endOfEvent: 0001-01-01,
endOfEventUTC: 0001-01-01,
timeZone: String,
timeOfEventUTC: 0001-01-01,
activeOrphan: False,
showFewTicketsLeft: False
},
statusCode: 0,
message: String
}