| POST | /1.0/BWEmailSignupRequest | Pass the email sign up requests for updating CRM |
|---|
import 'package:servicestack/servicestack.dart';
class BWEmailSignupResponse implements IConvertible
{
String? Result;
BWEmailSignupResponse({this.Result});
BWEmailSignupResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Result = json['Result'];
return this;
}
Map<String, dynamic> toJson() => {
'Result': Result
};
getTypeName() => "BWEmailSignupResponse";
TypeContext? context = _ctx;
}
class BWEmailSignupRequest implements IConvertible
{
/**
* Customer Surname
*/
// @ApiMember(Description="Customer Surname")
String? surname;
/**
* Customer Forename
*/
// @ApiMember(Description="Customer Forename")
String? forename;
/**
* Customer Email Address
*/
// @ApiMember(Description="Customer Email Address")
String? emailAddress;
BWEmailSignupRequest({this.surname,this.forename,this.emailAddress});
BWEmailSignupRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
surname = json['surname'];
forename = json['forename'];
emailAddress = json['emailAddress'];
return this;
}
Map<String, dynamic> toJson() => {
'surname': surname,
'forename': forename,
'emailAddress': emailAddress
};
getTypeName() => "BWEmailSignupRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'bwuknewsletterws_uat.rapp_customers.co.uk', types: <String, TypeInfo> {
'BWEmailSignupResponse': TypeInfo(TypeOf.Class, create:() => BWEmailSignupResponse()),
'BWEmailSignupRequest': TypeInfo(TypeOf.Class, create:() => BWEmailSignupRequest()),
});
Dart BWEmailSignupRequest 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.
POST /1.0/BWEmailSignupRequest HTTP/1.1
Host: bwuknewsletterws-uat.rapp-customers.co.uk
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"surname":"String","forename":"String","emailAddress":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Result":"String"}