| GET | /user/meetings |
|---|
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 MeetingData
{
public meetingId: number;
public startTime: string;
public arrivalTime: string;
public leftTime: string;
public duration: string;
public showTimeFields: boolean;
public arrivalStatus: string;
public email: string;
public hasEmail: boolean;
public contactName: string;
public latitude: number;
public longitude: number;
public location: string;
public address: string;
public subject: string;
public description: string;
public endTime: string;
public company: string;
public contactNumber: string;
public hasContactNumber: boolean;
public hasLocation: boolean;
public setBy: string;
public virtualOrInPerson: string;
public constructor(init?: Partial<MeetingData>) { (Object as any).assign(this, init); }
}
export class MeetingGroupData
{
public time: string;
public meetings: MeetingData[];
public constructor(init?: Partial<MeetingGroupData>) { (Object as any).assign(this, init); }
}
export enum ArrivalStatusEnum
{
Unknown = 0,
OnTime = 1,
Late = 2,
}
export class GetAllMeetingsResponse extends ApiServiceResponse
{
public startLatitude: number;
public startLongitude: number;
public endLatitude: number;
public endLongitude: number;
public meetingGroups: MeetingGroupData[];
public nextMeeting: MeetingData;
public arrivalStatusEnum: ArrivalStatusEnum;
public constructor(init?: Partial<GetAllMeetingsResponse>) { super(init); (Object as any).assign(this, init); }
}
export class GetAllMeetings extends ApiServiceRequest
{
// @ApiMember(IsRequired=true)
public date: string;
public dashboard: boolean;
public constructor(init?: Partial<GetAllMeetings>) { super(init); (Object as any).assign(this, init); }
}
TypeScript GetAllMeetings 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 /user/meetings HTTP/1.1 Host: cochraneplus-api-dev.happen.zone Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
startLatitude: 0,
startLongitude: 0,
endLatitude: 0,
endLongitude: 0,
meetingGroups:
[
{
}
],
nextMeeting:
{
meetingId: 0,
startTime: String,
arrivalTime: String,
leftTime: String,
duration: String,
showTimeFields: False,
arrivalStatus: String,
email: String,
hasEmail: True,
contactName: String,
latitude: 0,
longitude: 0,
location: String,
address: String,
subject: String,
description: String,
endTime: String,
company: String,
contactNumber: String,
hasContactNumber: True,
hasLocation: False,
setBy: String,
virtualOrInPerson: String
},
arrivalStatusEnum: 0,
description: String,
heading: String,
wasSuccessful: False,
modelState: {}
}