| All Verbs | /confirm-email |
|---|
import 'package:servicestack/servicestack.dart';
class ConfirmEmail implements IGet, IConvertible
{
String userId = "";
String code = "";
String? returnUrl;
ConfirmEmail({this.userId,this.code,this.returnUrl});
ConfirmEmail.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
userId = json['userId'];
code = json['code'];
returnUrl = json['returnUrl'];
return this;
}
Map<String, dynamic> toJson() => {
'userId': userId,
'code': code,
'returnUrl': returnUrl
};
getTypeName() => "ConfirmEmail";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'vue_spa.web_templates.io', types: <String, TypeInfo> {
'ConfirmEmail': TypeInfo(TypeOf.Class, create:() => ConfirmEmail()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /confirm-email HTTP/1.1
Host: vue-spa.web-templates.io
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
userId: String,
code: String,
returnUrl: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
}