| 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 .xml suffix or ?format=xml
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: application/xml
Content-Type: application/xml
Content-Length: length
<ConfirmEmail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyApp.ServiceModel">
<Code>String</Code>
<ReturnUrl>String</ReturnUrl>
<UserId>String</UserId>
</ConfirmEmail>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />