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 .xml suffix or ?format=xml
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/xml
Content-Type: application/xml
Content-Length: length
<SiteContextRequesttModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AlbaApi.Model">
<AccessToken>String</AccessToken>
<CprNumber>String</CprNumber>
<HasMemberData>false</HasMemberData>
<IsPreview>false</IsPreview>
<Pid>String</Pid>
<Uri>String</Uri>
<WtwUserName>String</WtwUserName>
</SiteContextRequesttModel>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <SiteContextResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AlbaApi.Model"> <CprNumberNeeded>false</CprNumberNeeded> <DisplayName>String</DisplayName> <Member> <Email>String</Email> <EmployeeGuid>00000000-0000-0000-0000-000000000000</EmployeeGuid> <FirstName>String</FirstName> <LastName>String</LastName> </Member> <TokenId>String</TokenId> </SiteContextResponseModel>