GET | /api/ICSCalendar |
---|
import 'package:servicestack/servicestack.dart';
// @DataContract
class BaseRequest implements IConvertible
{
/**
* This is your AIM API Key provided by Tri-Tech
*/
// @DataMember
// @ApiMember(DataType="string", Description="This is your AIM API Key provided by Tri-Tech", IsRequired=true, Name="ApiKey", ParameterType="Header")
String? ApiKey;
/**
* The OAuthToken token return by AeServices30
*/
// @DataMember
// @ApiMember(DataType="string", Description="The OAuthToken token return by AeServices30", IsRequired=true, Name="OAuthToken", ParameterType="Header")
String? OAuthToken;
/**
* The Device ID of the Mobile Device. Not used for non-mobile devices.
*/
// @DataMember
// @ApiMember(DataType="string", Description="The Device ID of the Mobile Device. Not used for non-mobile devices.", Name="DeviceId", ParameterType="Header")
String? DeviceId;
/**
* An identifier for your integration
*/
// @DataMember
// @ApiMember(DataType="string", Description="An identifier for your integration", IsRequired=true, Name="AppId", ParameterType="Header")
String? AppId;
BaseRequest({this.ApiKey,this.OAuthToken,this.DeviceId,this.AppId});
BaseRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ApiKey = json['ApiKey'];
OAuthToken = json['OAuthToken'];
DeviceId = json['DeviceId'];
AppId = json['AppId'];
return this;
}
Map<String, dynamic> toJson() => {
'ApiKey': ApiKey,
'OAuthToken': OAuthToken,
'DeviceId': DeviceId,
'AppId': AppId
};
getTypeName() => "BaseRequest";
TypeContext? context = _ctx;
}
/**
* ICSCalendarRequires active-e Lesson Scheduling Service
*/
// @DataContract
class ICSCalendarRequest extends BaseRequest implements IConvertible
{
// @DataMember
int? InstructorId;
// @DataMember
int? LocationId;
ICSCalendarRequest({this.InstructorId,this.LocationId});
ICSCalendarRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
InstructorId = json['InstructorId'];
LocationId = json['LocationId'];
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'InstructorId': InstructorId,
'LocationId': LocationId
});
getTypeName() => "ICSCalendarRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'active_ewebservice.biz', types: <String, TypeInfo> {
'BaseRequest': TypeInfo(TypeOf.Class, create:() => BaseRequest()),
'ICSCalendarRequest': TypeInfo(TypeOf.Class, create:() => ICSCalendarRequest()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /api/ICSCalendar HTTP/1.1 Host: active-ewebservice.biz Accept: text/jsonl