Reservation Station API

<back to all web services

GetVenue

Requires Authentication
The following routes are available for this service:
GET/venue/
GET/venue/{venuecode}

export class ApiServiceRequest implements IServiceRequest, IHasApiKey, IHasDeviceInfo
{
    /** @description The API Key required for authentication */
    // @ApiMember(DataType="string", Description="The API Key required for authentication", IsRequired=true)
    public apiKey: string;

    /** @description Latitude of the user making this request */
    // @ApiMember(DataType="double", Description="Latitude of the user making this request")
    public latitude: number;

    /** @description Longitude of the user making this request */
    // @ApiMember(DataType="double", Description="Longitude of the user making this request")
    public longitude: number;

    public constructor(init?: Partial<ApiServiceRequest>) { (Object as any).assign(this, init); }
}

export class ApiServiceResponse implements IServiceResponse
{
    public description: string;
    public heading: string;
    public wasSuccessful: boolean;
    public modelState: Object;

    public constructor(init?: Partial<ApiServiceResponse>) { (Object as any).assign(this, init); }
}

export class RatesItem
{
    public rate: number;
    public minutes: number;

    public constructor(init?: Partial<RatesItem>) { (Object as any).assign(this, init); }
}

export class FacilityData
{
    public facilityId: number;
    public facilityGuid: string;
    public name: string;
    public description: string;
    public nextAvailable: string;
    public hasNextAvailable: boolean;
    public rates: RatesItem[];
    public themeColor: string;
    public bookingNotes: string;
    public leadTime: number;
    public venueId: number;
    public allowExtraRequirements: boolean;

    public constructor(init?: Partial<FacilityData>) { (Object as any).assign(this, init); }
}

export class VenueData
{
    public venueId: number;
    public name: string;
    public registeredDate: string;
    public venueCode: string;
    public isCoordinator: boolean;
    public facilities: FacilityData[];
    public latitude: number;
    public longitude: number;
    public hasLocation: boolean;
    public logoUrl: string;
    public leadTime: number;
    public venueInfo: string;
    public allowGuests: boolean;
    public contactNumber: string;

    public constructor(init?: Partial<VenueData>) { (Object as any).assign(this, init); }
}

export class GetVenueResponse extends ApiServiceResponse
{
    public venue: VenueData;

    public constructor(init?: Partial<GetVenueResponse>) { super(init); (Object as any).assign(this, init); }
}

export class GetVenue extends ApiServiceRequest
{
    public venueCode: string;

    public constructor(init?: Partial<GetVenue>) { super(init); (Object as any).assign(this, init); }
}

TypeScript GetVenue DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /venue/ HTTP/1.1 
Host: reservation.api.dev.86degrees.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"description":"String","heading":"String","wasSuccessful":false,"modelState":{}}