All Verbs | /Usuarios/RecoveryUser |
---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class RecoveryUsersRS implements IConvertible
{
String? Res;
String? ErrorMessage;
RecoveryUsersRS({this.Res,this.ErrorMessage});
RecoveryUsersRS.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Res = json['Res'];
ErrorMessage = json['ErrorMessage'];
return this;
}
Map<String, dynamic> toJson() => {
'Res': Res,
'ErrorMessage': ErrorMessage
};
getTypeName() => "RecoveryUsersRS";
TypeContext? context = _ctx;
}
enum Lenguajes
{
ES,
PT,
EN,
}
class RecoveryUsersRQ implements IConvertible
{
String? Login;
String? Code;
String? Password;
String? Type;
Lenguajes? Lenguaje;
RecoveryUsersRQ({this.Login,this.Code,this.Password,this.Type,this.Lenguaje});
RecoveryUsersRQ.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Login = json['Login'];
Code = json['Code'];
Password = json['Password'];
Type = json['Type'];
Lenguaje = JsonConverters.fromJson(json['Lenguaje'],'Lenguajes',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Login': Login,
'Code': Code,
'Password': Password,
'Type': Type,
'Lenguaje': JsonConverters.toJson(Lenguaje,'Lenguajes',context!)
};
getTypeName() => "RecoveryUsersRQ";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'soluser_recaudo.sgsas.co', types: <String, TypeInfo> {
'RecoveryUsersRS': TypeInfo(TypeOf.Class, create:() => RecoveryUsersRS()),
'Lenguajes': TypeInfo(TypeOf.Enum, enumValues:Lenguajes.values),
'RecoveryUsersRQ': TypeInfo(TypeOf.Class, create:() => RecoveryUsersRQ()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Usuarios/RecoveryUser HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"Login":"String","Code":"String","Password":"String","Type":"String","Lenguaje":"ES"}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"Res":"String","ErrorMessage":"String"}