POST | /login/ |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class Login
{
public String CiamId = null;
public String FirstName = null;
public String LastName = null;
public String EmailAddress = null;
public String MobileTelephoneNumber = null;
public String getCiamId() { return CiamId; }
public Login setCiamId(String value) { this.CiamId = value; return this; }
public String getFirstName() { return FirstName; }
public Login setFirstName(String value) { this.FirstName = value; return this; }
public String getLastName() { return LastName; }
public Login setLastName(String value) { this.LastName = value; return this; }
public String getEmailAddress() { return EmailAddress; }
public Login setEmailAddress(String value) { this.EmailAddress = value; return this; }
public String getMobileTelephoneNumber() { return MobileTelephoneNumber; }
public Login setMobileTelephoneNumber(String value) { this.MobileTelephoneNumber = value; return this; }
}
public static class LoginResponse
{
public ReturnStatus Status = null;
public String FirstName = null;
public String LastName = null;
public String EmailAddress = null;
public String MobileTelephoneNumber = null;
public String HomeAddress_BuildingNumberName = null;
public String HomeAddress_Line1 = null;
public String HomeAddress_Line2 = null;
public String HomeAddress_TownCity = null;
public String HomeAddress_County = null;
public String HomeAddress_Postcode = null;
public String CompanyName = null;
public String CompanyType = null;
public String CompanyRegistrationNumber = null;
public String VATNumber = null;
public String BusinessAddress_BuildingNumberName = null;
public String BusinessAddress_Line1 = null;
public String BusinessAddress_Line2 = null;
public String BusinessAddress_TownCity = null;
public String BusinessAddress_County = null;
public String BusinessAddress_Postcode = null;
public String BusinessIndustryType = null;
public String FleetSize = null;
public String EmailOptIn = null;
public String TelephoneOptIn = null;
public String SMSOptIn = null;
public String PostOptIn = null;
public ReturnStatus getStatus() { return Status; }
public LoginResponse setStatus(ReturnStatus value) { this.Status = value; return this; }
public String getFirstName() { return FirstName; }
public LoginResponse setFirstName(String value) { this.FirstName = value; return this; }
public String getLastName() { return LastName; }
public LoginResponse setLastName(String value) { this.LastName = value; return this; }
public String getEmailAddress() { return EmailAddress; }
public LoginResponse setEmailAddress(String value) { this.EmailAddress = value; return this; }
public String getMobileTelephoneNumber() { return MobileTelephoneNumber; }
public LoginResponse setMobileTelephoneNumber(String value) { this.MobileTelephoneNumber = value; return this; }
public String getHomeAddressBuildingNumberName() { return HomeAddress_BuildingNumberName; }
public LoginResponse setHomeAddressBuildingNumberName(String value) { this.HomeAddress_BuildingNumberName = value; return this; }
public String getHomeAddressLine1() { return HomeAddress_Line1; }
public LoginResponse setHomeAddressLine1(String value) { this.HomeAddress_Line1 = value; return this; }
public String getHomeAddressLine2() { return HomeAddress_Line2; }
public LoginResponse setHomeAddressLine2(String value) { this.HomeAddress_Line2 = value; return this; }
public String getHomeAddressTownCity() { return HomeAddress_TownCity; }
public LoginResponse setHomeAddressTownCity(String value) { this.HomeAddress_TownCity = value; return this; }
public String getHomeAddressCounty() { return HomeAddress_County; }
public LoginResponse setHomeAddressCounty(String value) { this.HomeAddress_County = value; return this; }
public String getHomeAddressPostcode() { return HomeAddress_Postcode; }
public LoginResponse setHomeAddressPostcode(String value) { this.HomeAddress_Postcode = value; return this; }
public String getCompanyName() { return CompanyName; }
public LoginResponse setCompanyName(String value) { this.CompanyName = value; return this; }
public String getCompanyType() { return CompanyType; }
public LoginResponse setCompanyType(String value) { this.CompanyType = value; return this; }
public String getCompanyRegistrationNumber() { return CompanyRegistrationNumber; }
public LoginResponse setCompanyRegistrationNumber(String value) { this.CompanyRegistrationNumber = value; return this; }
public String getVatNumber() { return VATNumber; }
public LoginResponse setVatNumber(String value) { this.VATNumber = value; return this; }
public String getBusinessAddressBuildingNumberName() { return BusinessAddress_BuildingNumberName; }
public LoginResponse setBusinessAddressBuildingNumberName(String value) { this.BusinessAddress_BuildingNumberName = value; return this; }
public String getBusinessAddressLine1() { return BusinessAddress_Line1; }
public LoginResponse setBusinessAddressLine1(String value) { this.BusinessAddress_Line1 = value; return this; }
public String getBusinessAddressLine2() { return BusinessAddress_Line2; }
public LoginResponse setBusinessAddressLine2(String value) { this.BusinessAddress_Line2 = value; return this; }
public String getBusinessAddressTownCity() { return BusinessAddress_TownCity; }
public LoginResponse setBusinessAddressTownCity(String value) { this.BusinessAddress_TownCity = value; return this; }
public String getBusinessAddressCounty() { return BusinessAddress_County; }
public LoginResponse setBusinessAddressCounty(String value) { this.BusinessAddress_County = value; return this; }
public String getBusinessAddressPostcode() { return BusinessAddress_Postcode; }
public LoginResponse setBusinessAddressPostcode(String value) { this.BusinessAddress_Postcode = value; return this; }
public String getBusinessIndustryType() { return BusinessIndustryType; }
public LoginResponse setBusinessIndustryType(String value) { this.BusinessIndustryType = value; return this; }
public String getFleetSize() { return FleetSize; }
public LoginResponse setFleetSize(String value) { this.FleetSize = value; return this; }
public String getEmailOptIn() { return EmailOptIn; }
public LoginResponse setEmailOptIn(String value) { this.EmailOptIn = value; return this; }
public String getTelephoneOptIn() { return TelephoneOptIn; }
public LoginResponse setTelephoneOptIn(String value) { this.TelephoneOptIn = value; return this; }
public String getSmsOptIn() { return SMSOptIn; }
public LoginResponse setSmsOptIn(String value) { this.SMSOptIn = value; return this; }
public String getPostOptIn() { return PostOptIn; }
public LoginResponse setPostOptIn(String value) { this.PostOptIn = value; return this; }
}
public static class ReturnStatus
{
public String ReturnCode = null;
public String Message = null;
public String getReturnCode() { return ReturnCode; }
public ReturnStatus setReturnCode(String value) { this.ReturnCode = value; return this; }
public String getMessage() { return Message; }
public ReturnStatus setMessage(String value) { this.Message = value; return this; }
}
}
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.
POST /login/ HTTP/1.1
Host: webservices.mbukdatabase.co.uk
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
CiamId: String,
FirstName: String,
LastName: String,
EmailAddress: String,
MobileTelephoneNumber: String
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { Status: { ReturnCode: String, Message: String }, FirstName: String, LastName: String, EmailAddress: String, MobileTelephoneNumber: String, HomeAddress_BuildingNumberName: String, HomeAddress_Line1: String, HomeAddress_Line2: String, HomeAddress_TownCity: String, HomeAddress_County: String, HomeAddress_Postcode: String, CompanyName: String, CompanyType: String, CompanyRegistrationNumber: String, VATNumber: String, BusinessAddress_BuildingNumberName: String, BusinessAddress_Line1: String, BusinessAddress_Line2: String, BusinessAddress_TownCity: String, BusinessAddress_County: String, BusinessAddress_Postcode: String, BusinessIndustryType: String, FleetSize: String, EmailOptIn: String, TelephoneOptIn: String, SMSOptIn: String, PostOptIn: String }