Requires the role: | 3rdPartySearch | Required permission: | EventsSearch |
GET | /EventsWithLocation | ||
---|---|---|---|
POST/GET | /EventsWithLocation/MaxDays/{MaxDays} |
export class Status
{
public statusCode?: number;
public statusMessage?: string;
public statusDetails?: string;
public constructor(init?: Partial<Status>) { (Object as any).assign(this, init); }
}
export class EventWithLocation
{
public id?: number;
public name?: string;
public description?: string;
public timeOfEvent?: string;
public eventActive?: boolean;
public eventSeriesActive?: boolean;
public eventLocationName?: string;
public latitude?: number;
public longitude?: number;
public addressName?: string;
public addressLine?: string;
public zip?: string;
public city?: string;
public countryCode?: string;
public postPonedNoDate?: boolean;
public endOfEvent?: string;
public constructor(init?: Partial<EventWithLocation>) { (Object as any).assign(this, init); }
}
export class EventsWithLocationResult
{
public status?: Status;
public data?: EventWithLocation[];
public constructor(init?: Partial<EventsWithLocationResult>) { (Object as any).assign(this, init); }
}
export class EventsWithLocationRequest
{
public maxDays?: number;
public constructor(init?: Partial<EventsWithLocationRequest>) { (Object as any).assign(this, init); }
}
TypeScript EventsWithLocationRequest 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 /EventsWithLocation HTTP/1.1 Host: stubbur-autoupdates-live.smartnewapis.com Accept: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { status: { statusCode: 0, statusMessage: String, statusDetails: String }, data: [ { id: 0, name: String, description: String, timeOfEvent: 0001-01-01, eventActive: False, eventSeriesActive: False, eventLocationName: String, latitude: 0, longitude: 0, addressName: String, addressLine: String, zip: String, city: String, countryCode: String, postPonedNoDate: False, endOfEvent: 0001-01-01 } ] }