GET | /api/clients/{clientid}/emailtemplates/{templatetype} | Get an email template based on client id and template type |
---|
import 'package:servicestack/servicestack.dart';
class GetClientEmailTemplateRequest implements IConvertible
{
String? clientId;
String? templateType;
GetClientEmailTemplateRequest({this.clientId,this.templateType});
GetClientEmailTemplateRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
clientId = json['clientId'];
templateType = json['templateType'];
return this;
}
Map<String, dynamic> toJson() => {
'clientId': clientId,
'templateType': templateType
};
getTypeName() => "GetClientEmailTemplateRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'accounts.dev.healthmonix.com', types: <String, TypeInfo> {
'GetClientEmailTemplateRequest': TypeInfo(TypeOf.Class, create:() => GetClientEmailTemplateRequest()),
});
Dart GetClientEmailTemplateRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /api/clients/{clientid}/emailtemplates/{templatetype} HTTP/1.1 Host: accounts.dev.healthmonix.com Accept: text/csv