GET | /danishproxyaccess/get/cpr/{CprNumber}/wtwusername/{WtwUsername} |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class DanishAdminProxyRequest
{
public String cprNumber = null;
public String wtwUsername = null;
public String getCprNumber() { return cprNumber; }
public DanishAdminProxyRequest setCprNumber(String value) { this.cprNumber = value; return this; }
public String getWtwUsername() { return wtwUsername; }
public DanishAdminProxyRequest setWtwUsername(String value) { this.wtwUsername = value; return this; }
}
public static class DanishAdminProxyResponse
{
public String message = null;
public Integer statusCode = null;
public String memberPid = null;
public UUID memberEmployeeGuid = null;
public KappResponseStatus kappResponseStatus = null;
public ProxyAccess proxyAccess = null;
public Boolean hasMemberData = null;
public String getMessage() { return message; }
public DanishAdminProxyResponse setMessage(String value) { this.message = value; return this; }
public Integer getStatusCode() { return statusCode; }
public DanishAdminProxyResponse setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMemberPid() { return memberPid; }
public DanishAdminProxyResponse setMemberPid(String value) { this.memberPid = value; return this; }
public UUID getMemberEmployeeGuid() { return memberEmployeeGuid; }
public DanishAdminProxyResponse setMemberEmployeeGuid(UUID value) { this.memberEmployeeGuid = value; return this; }
public KappResponseStatus getKappResponseStatus() { return kappResponseStatus; }
public DanishAdminProxyResponse setKappResponseStatus(KappResponseStatus value) { this.kappResponseStatus = value; return this; }
public ProxyAccess getProxyAccess() { return proxyAccess; }
public DanishAdminProxyResponse setProxyAccess(ProxyAccess value) { this.proxyAccess = value; return this; }
public Boolean isHasMemberData() { return hasMemberData; }
public DanishAdminProxyResponse setHasMemberData(Boolean value) { this.hasMemberData = value; return this; }
}
public static class KappResponseStatus
{
public String statusCode = null;
public String statusMessage = null;
public String getStatusCode() { return statusCode; }
public KappResponseStatus setStatusCode(String value) { this.statusCode = value; return this; }
public String getStatusMessage() { return statusMessage; }
public KappResponseStatus setStatusMessage(String value) { this.statusMessage = value; return this; }
}
public static class ProxyAccess
{
public String wtwUsername = null;
public String cpr = null;
public Boolean accessGranted = null;
public String message = null;
public Date timeStamp = null;
public String getWtwUsername() { return wtwUsername; }
public ProxyAccess setWtwUsername(String value) { this.wtwUsername = value; return this; }
public String getCpr() { return cpr; }
public ProxyAccess setCpr(String value) { this.cpr = value; return this; }
public Boolean isAccessGranted() { return accessGranted; }
public ProxyAccess setAccessGranted(Boolean value) { this.accessGranted = value; return this; }
public String getMessage() { return message; }
public ProxyAccess setMessage(String value) { this.message = value; return this; }
public Date getTimeStamp() { return timeStamp; }
public ProxyAccess setTimeStamp(Date value) { this.timeStamp = value; return this; }
}
}
Java DanishAdminProxyRequest DTOs
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.
GET /danishproxyaccess/get/cpr/{CprNumber}/wtwusername/{WtwUsername} HTTP/1.1 Host: hcbtas-q-albamfs-api.azurewebsites.net Accept: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { message: String, statusCode: 0, memberPid: String, memberEmployeeGuid: 00000000000000000000000000000000, kappResponseStatus: { statusCode: String, statusMessage: String }, proxyAccess: { wtwUsername: String, cpr: String, accessGranted: False, message: String, timeStamp: 0001-01-01 }, hasMemberData: False }