sfgboxapi

<back to all web services

PasswordResetPasswordRequest

The following routes are available for this service:
PUT/passwordreset/change
import 'package:servicestack/servicestack.dart';

class PasswordResetPasswordRequest implements IConvertible
{
    String? email;
    String? id;
    String? newPassword;
    String? newPasswordConfirm;
    String? url;

    PasswordResetPasswordRequest({this.email,this.id,this.newPassword,this.newPasswordConfirm,this.url});
    PasswordResetPasswordRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        email = json['email'];
        id = json['id'];
        newPassword = json['newPassword'];
        newPasswordConfirm = json['newPasswordConfirm'];
        url = json['url'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'email': email,
        'id': id,
        'newPassword': newPassword,
        'newPasswordConfirm': newPasswordConfirm,
        'url': url
    };

    getTypeName() => "PasswordResetPasswordRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'api.sfgtec.com', types: <String, TypeInfo> {
    'PasswordResetPasswordRequest': TypeInfo(TypeOf.Class, create:() => PasswordResetPasswordRequest()),
});

Dart PasswordResetPasswordRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT /passwordreset/change HTTP/1.1 
Host: api.sfgtec.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	email: String,
	id: String,
	newPassword: String,
	newPasswordConfirm: String,
	url: String
}