| POST,OPTIONS | /v1/portal/login/request |
|---|
import 'package:servicestack/servicestack.dart';
class PortalLoginRequestResult implements IConvertible
{
bool? Sent;
ResponseStatus? ResponseStatus;
PortalLoginRequestResult({this.Sent,this.ResponseStatus});
PortalLoginRequestResult.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Sent = json['Sent'];
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Sent': Sent,
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "PortalLoginRequestResult";
TypeContext? context = _ctx;
}
class PortalLoginOtpRequest implements IConvertible
{
String? Email;
PortalLoginOtpRequest({this.Email});
PortalLoginOtpRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Email = json['Email'];
return this;
}
Map<String, dynamic> toJson() => {
'Email': Email
};
getTypeName() => "PortalLoginOtpRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'PortalLoginRequestResult': TypeInfo(TypeOf.Class, create:() => PortalLoginRequestResult()),
'PortalLoginOtpRequest': TypeInfo(TypeOf.Class, create:() => PortalLoginOtpRequest()),
});
Dart PortalLoginOtpRequest 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 /v1/portal/login/request HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Email":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Sent":false,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}