| POST | /authorizefunction |
|---|
import 'package:servicestack/servicestack.dart';
class AuthoriseFunction implements IConvertible
{
// @Validate(Validator="Email")
String? eMail;
// @Validate(Validator="[NotNull,NotEmpty]")
String? password;
String? systemFunction;
ResponseStatus? responseStatus;
AuthoriseFunction({this.eMail,this.password,this.systemFunction,this.responseStatus});
AuthoriseFunction.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
eMail = json['eMail'];
password = json['password'];
systemFunction = json['systemFunction'];
responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'eMail': eMail,
'password': password,
'systemFunction': systemFunction,
'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!)
};
getTypeName() => "AuthoriseFunction";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'sfgboxapi.dev.scadsoftware.com', types: <String, TypeInfo> {
'AuthoriseFunction': TypeInfo(TypeOf.Class, create:() => AuthoriseFunction()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /authorizefunction HTTP/1.1
Host: sfgboxapi.dev.scadsoftware.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
eMail: String,
password: String,
systemFunction: String,
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}