GET | /unsyncedusers/ | Get user that are no sync benween DB and Keycloack |
---|
import 'package:servicestack/servicestack.dart';
class UnSyncedUserResponse implements IConvertible
{
String? Email;
bool? InDb;
bool? InKeyCloak;
bool? ErrorGettingValuesFromKeyCloak;
UnSyncedUserResponse({this.Email,this.InDb,this.InKeyCloak,this.ErrorGettingValuesFromKeyCloak});
UnSyncedUserResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Email = json['Email'];
InDb = json['InDb'];
InKeyCloak = json['InKeyCloak'];
ErrorGettingValuesFromKeyCloak = json['ErrorGettingValuesFromKeyCloak'];
return this;
}
Map<String, dynamic> toJson() => {
'Email': Email,
'InDb': InDb,
'InKeyCloak': InKeyCloak,
'ErrorGettingValuesFromKeyCloak': ErrorGettingValuesFromKeyCloak
};
getTypeName() => "UnSyncedUserResponse";
TypeContext? context = _ctx;
}
class UnSyncedUsersResponse implements IConvertible
{
String? CompanyId;
List<UnSyncedUserResponse>? UnSyncedUsers;
UnSyncedUsersResponse({this.CompanyId,this.UnSyncedUsers});
UnSyncedUsersResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
CompanyId = json['CompanyId'];
UnSyncedUsers = JsonConverters.fromJson(json['UnSyncedUsers'],'List<UnSyncedUserResponse>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'CompanyId': CompanyId,
'UnSyncedUsers': JsonConverters.toJson(UnSyncedUsers,'List<UnSyncedUserResponse>',context!)
};
getTypeName() => "UnSyncedUsersResponse";
TypeContext? context = _ctx;
}
class UnSyncedUsers implements IConvertible
{
/**
* Id of the company
*/
// @ApiMember(Description="Id of the company", IsRequired=true, ParameterType="path")
String? CompanyId;
UnSyncedUsers({this.CompanyId});
UnSyncedUsers.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
CompanyId = json['CompanyId'];
return this;
}
Map<String, dynamic> toJson() => {
'CompanyId': CompanyId
};
getTypeName() => "UnSyncedUsers";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: <String, TypeInfo> {
'UnSyncedUserResponse': TypeInfo(TypeOf.Class, create:() => UnSyncedUserResponse()),
'UnSyncedUsersResponse': TypeInfo(TypeOf.Class, create:() => UnSyncedUsersResponse()),
'List<UnSyncedUserResponse>': TypeInfo(TypeOf.Class, create:() => <UnSyncedUserResponse>[]),
'UnSyncedUsers': TypeInfo(TypeOf.Class, create:() => UnSyncedUsers()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /unsyncedusers/ HTTP/1.1 Host: api.bokamera.se Accept: application/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"UnSyncedUsers":[{"Email":"String","InDb":false,"InKeyCloak":false,"ErrorGettingValuesFromKeyCloak":false}]}