sfgboxapi

<back to all web services

PasswordResetRequest

The following routes are available for this service:
POST/passwordreset
All Verbs/auth/passwordreset
import 'package:servicestack/servicestack.dart';

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

    PasswordResetRequest({this.email,this.id,this.newPassword,this.newPasswordConfirm,this.url});
    PasswordResetRequest.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() => "PasswordResetRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'sfgboxapi.dev.scadsoftware.com', types: <String, TypeInfo> {
    'PasswordResetRequest': TypeInfo(TypeOf.Class, create:() => PasswordResetRequest()),
});

Dart PasswordResetRequest DTOs

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

HTTP + CSV

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

POST /passwordreset HTTP/1.1 
Host: sfgboxapi.dev.scadsoftware.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

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