| All Verbs | /test/users | ||
|---|---|---|---|
| All Verbs | /test/users/{role} |
import 'package:servicestack/servicestack.dart';
class TestUsersResponse implements IConvertible
{
String? Email;
List<String>? Roles;
TestUsersResponse({this.Email,this.Roles});
TestUsersResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Email = json['Email'];
Roles = JsonConverters.fromJson(json['Roles'],'List<String>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Email': Email,
'Roles': JsonConverters.toJson(Roles,'List<String>',context!)
};
getTypeName() => "TestUsersResponse";
TypeContext? context = _ctx;
}
class GetTestUsers implements IConvertible
{
String? Role;
GetTestUsers({this.Role});
GetTestUsers.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Role = json['Role'];
return this;
}
Map<String, dynamic> toJson() => {
'Role': Role
};
getTypeName() => "GetTestUsers";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'duengageapi.uat.scadsoftware.com', types: <String, TypeInfo> {
'TestUsersResponse': TypeInfo(TypeOf.Class, create:() => TestUsersResponse()),
'GetTestUsers': TypeInfo(TypeOf.Class, create:() => GetTestUsers()),
});
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 /test/users HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"Role":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"Email":"String","Roles":["String"]}