POST | /nemidsitecontext |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class SiteContextRequesttModel
{
public String accessToken = null;
public String pid = null;
public String cprNumber = null;
public String uri = null;
public String mapUri = null;
public Boolean isPreview = null;
public String wtwUserName = null;
public Boolean hasMemberData = null;
public String getAccessToken() { return accessToken; }
public SiteContextRequesttModel setAccessToken(String value) { this.accessToken = value; return this; }
public String getPid() { return pid; }
public SiteContextRequesttModel setPid(String value) { this.pid = value; return this; }
public String getCprNumber() { return cprNumber; }
public SiteContextRequesttModel setCprNumber(String value) { this.cprNumber = value; return this; }
public String getUri() { return uri; }
public SiteContextRequesttModel setUri(String value) { this.uri = value; return this; }
public String getMapUri() { return mapUri; }
public SiteContextRequesttModel setMapUri(String value) { this.mapUri = value; return this; }
public Boolean getIsPreview() { return isPreview; }
public SiteContextRequesttModel setIsPreview(Boolean value) { this.isPreview = value; return this; }
public String getWtwUserName() { return wtwUserName; }
public SiteContextRequesttModel setWtwUserName(String value) { this.wtwUserName = value; return this; }
public Boolean isHasMemberData() { return hasMemberData; }
public SiteContextRequesttModel setHasMemberData(Boolean value) { this.hasMemberData = value; return this; }
}
public static class SiteContextResponseModel
{
public Boolean cprNumberNeeded = null;
public String tokenId = null;
public String displayName = null;
public SiteContextMemberModel member = null;
public Boolean isCprNumberNeeded() { return cprNumberNeeded; }
public SiteContextResponseModel setCprNumberNeeded(Boolean value) { this.cprNumberNeeded = value; return this; }
public String getTokenId() { return tokenId; }
public SiteContextResponseModel setTokenId(String value) { this.tokenId = value; return this; }
public String getDisplayName() { return displayName; }
public SiteContextResponseModel setDisplayName(String value) { this.displayName = value; return this; }
public SiteContextMemberModel getMember() { return member; }
public SiteContextResponseModel setMember(SiteContextMemberModel value) { this.member = value; return this; }
}
public static class SiteContextMemberModel
{
public String email = null;
public String firstName = null;
public String lastName = null;
public String mapEmail = null;
public UUID employeeGuid = null;
public String getEmail() { return email; }
public SiteContextMemberModel setEmail(String value) { this.email = value; return this; }
public String getFirstName() { return firstName; }
public SiteContextMemberModel setFirstName(String value) { this.firstName = value; return this; }
public String getLastName() { return lastName; }
public SiteContextMemberModel setLastName(String value) { this.lastName = value; return this; }
public String getMapEmail() { return mapEmail; }
public SiteContextMemberModel setMapEmail(String value) { this.mapEmail = value; return this; }
public UUID getEmployeeGuid() { return employeeGuid; }
public SiteContextMemberModel setEmployeeGuid(UUID value) { this.employeeGuid = value; return this; }
}
}
Java SiteContextRequesttModel DTOs
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.
POST /nemidsitecontext HTTP/1.1
Host: hcbtas-q-albamfs-api.azurewebsites.net
Accept: application/json
Content-Type: application/json
Content-Length: length
{"accessToken":"String","pid":"String","cprNumber":"String","uri":"String","mapUri":"String","isPreview":false,"wtwUserName":"String","hasMemberData":false}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"cprNumberNeeded":false,"tokenId":"String","displayName":"String","member":{"email":"String","firstName":"String","lastName":"String","mapEmail":"viggo.mortenson@alba.com","employeeGuid":"00000000000000000000000000000000"}}