AlbaApi

<back to all web services

EmpIdGetSiteContextModel

The following routes are available for this service:
GET/empidsitecontext
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class EmpIdGetSiteContextModel
    {
        public String empId = null;
        
        public String getEmpId() { return empId; }
        public EmpIdGetSiteContextModel setEmpId(String value) { this.empId = 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 EmpIdGetSiteContextModel 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

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /empidsitecontext HTTP/1.1 
Host: hcbtas-q-albamfs-api.azurewebsites.net 
Accept: application/json
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"}}