Required role: | Consumer |
PUT | /signup/send-verification-email |
---|
library ConsumerApi;
import 'package:servicestack/servicestack.dart';
class EmailSendVerificationCodeResponse implements IConvertible
{
String? sentEmailWithRequestId;
String? emailVerificationWithCodeToken;
EmailSendVerificationCodeResponse({this.sentEmailWithRequestId,this.emailVerificationWithCodeToken});
EmailSendVerificationCodeResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
sentEmailWithRequestId = json['sentEmailWithRequestId'];
emailVerificationWithCodeToken = json['emailVerificationWithCodeToken'];
return this;
}
Map<String, dynamic> toJson() => {
'sentEmailWithRequestId': sentEmailWithRequestId,
'emailVerificationWithCodeToken': emailVerificationWithCodeToken
};
getTypeName() => "EmailSendVerificationCodeResponse";
TypeContext? context = _ctx;
}
class EmailSendVerificationCodeRequest implements IPut, IConvertible
{
// @Validate(Validator="NotEmpty")
// @Validate(Validator="Email")
String? email;
EmailSendVerificationCodeRequest({this.email});
EmailSendVerificationCodeRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
email = json['email'];
return this;
}
Map<String, dynamic> toJson() => {
'email': email
};
getTypeName() => "EmailSendVerificationCodeRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'ConsumerApi', types: <String, TypeInfo> {
'EmailSendVerificationCodeResponse': TypeInfo(TypeOf.Class, create:() => EmailSendVerificationCodeResponse()),
'EmailSendVerificationCodeRequest': TypeInfo(TypeOf.Class, create:() => EmailSendVerificationCodeRequest()),
});
Dart EmailSendVerificationCodeRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /signup/send-verification-email HTTP/1.1
Host: unstable-consumer-api.brovs.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"email":"String"}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"sentEmailWithRequestId":"String","emailVerificationWithCodeToken":"String"}