| Required role: | Admin |
| POST | /partnerregister |
|---|
import 'package:servicestack/servicestack.dart';
class PartnerRegisterResponse implements IConvertible
{
int? Id;
ResponseStatus? ResponseStatus;
PartnerRegisterResponse({this.Id,this.ResponseStatus});
PartnerRegisterResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Id = json['Id'];
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Id': Id,
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "PartnerRegisterResponse";
TypeContext? context = _ctx;
}
class PartnerRegister implements IConvertible
{
// @Validate(Validator="Email")
String? EMail;
// @Validate(Validator="[NotNull,NotEmpty]")
String? Name;
// @Validate(Validator="NotNull")
String? Password;
String? ConfirmPassword;
// @Validate(Validator="NotNull")
String? Company;
// @Validate(Validator="NotNull")
int? CurrencyId;
List<String>? Roles;
PartnerRegister({this.EMail,this.Name,this.Password,this.ConfirmPassword,this.Company,this.CurrencyId,this.Roles});
PartnerRegister.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
EMail = json['EMail'];
Name = json['Name'];
Password = json['Password'];
ConfirmPassword = json['ConfirmPassword'];
Company = json['Company'];
CurrencyId = json['CurrencyId'];
Roles = JsonConverters.fromJson(json['Roles'],'List<String>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'EMail': EMail,
'Name': Name,
'Password': Password,
'ConfirmPassword': ConfirmPassword,
'Company': Company,
'CurrencyId': CurrencyId,
'Roles': JsonConverters.toJson(Roles,'List<String>',context!)
};
getTypeName() => "PartnerRegister";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'duengageapi.uat.scadsoftware.com', types: <String, TypeInfo> {
'PartnerRegisterResponse': TypeInfo(TypeOf.Class, create:() => PartnerRegisterResponse()),
'PartnerRegister': TypeInfo(TypeOf.Class, create:() => PartnerRegister()),
});
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 /partnerregister HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"EMail":"String","Name":"String","Password":"String","ConfirmPassword":"String","Company":"String","CurrencyId":0,"Roles":["String"]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"Id":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}