GET | /unsyncedusers/ | Get user that are no sync benween DB and Keycloack |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class UnSyncedUsers
{
/**
* Id of the company
*/
@ApiMember(Description="Id of the company", IsRequired=true, ParameterType="path")
public UUID CompanyId = null;
public UUID getCompanyId() { return CompanyId; }
public UnSyncedUsers setCompanyId(UUID value) { this.CompanyId = value; return this; }
}
public static class UnSyncedUsersResponse
{
public UUID CompanyId = null;
public ArrayList<UnSyncedUserResponse> UnSyncedUsers = null;
public UUID getCompanyId() { return CompanyId; }
public UnSyncedUsersResponse setCompanyId(UUID value) { this.CompanyId = value; return this; }
public ArrayList<UnSyncedUserResponse> getUnSyncedUsers() { return UnSyncedUsers; }
public UnSyncedUsersResponse setUnSyncedUsers(ArrayList<UnSyncedUserResponse> value) { this.UnSyncedUsers = value; return this; }
}
public static class UnSyncedUserResponse
{
public String Email = null;
public Boolean InDb = null;
public Boolean InKeyCloak = null;
public Boolean ErrorGettingValuesFromKeyCloak = null;
public String getEmail() { return Email; }
public UnSyncedUserResponse setEmail(String value) { this.Email = value; return this; }
public Boolean isInDb() { return InDb; }
public UnSyncedUserResponse setInDb(Boolean value) { this.InDb = value; return this; }
public Boolean isInKeyCloak() { return InKeyCloak; }
public UnSyncedUserResponse setInKeyCloak(Boolean value) { this.InKeyCloak = value; return this; }
public Boolean isErrorGettingValuesFromKeyCloak() { return ErrorGettingValuesFromKeyCloak; }
public UnSyncedUserResponse setErrorGettingValuesFromKeyCloak(Boolean value) { this.ErrorGettingValuesFromKeyCloak = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <UnSyncedUsersResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BokaMera.API.ServiceModel.Dtos"> <CompanyId>00000000-0000-0000-0000-000000000000</CompanyId> <UnSyncedUsers> <UnSyncedUserResponse> <Email>String</Email> <ErrorGettingValuesFromKeyCloak>false</ErrorGettingValuesFromKeyCloak> <InDb>false</InDb> <InKeyCloak>false</InKeyCloak> </UnSyncedUserResponse> </UnSyncedUsers> </UnSyncedUsersResponse>