POST | /insuranceproducts/ |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class InsuranceProducts
{
public String CIAMId = null;
public String ChassisNumber = null;
public Short ItemsPerPage = null;
public Short PageNumber = null;
public String getCiamId() { return CIAMId; }
public InsuranceProducts setCiamId(String value) { this.CIAMId = value; return this; }
public String getChassisNumber() { return ChassisNumber; }
public InsuranceProducts setChassisNumber(String value) { this.ChassisNumber = value; return this; }
public Short getItemsPerPage() { return ItemsPerPage; }
public InsuranceProducts setItemsPerPage(Short value) { this.ItemsPerPage = value; return this; }
public Short getPageNumber() { return PageNumber; }
public InsuranceProducts setPageNumber(Short value) { this.PageNumber = value; return this; }
}
public static class InsuranceProductsResponse
{
public ReturnStatus Status = null;
public Short NumberOfPages = null;
public ArrayList<InsuranceProduct> InsuranceProducts = null;
public ReturnStatus getStatus() { return Status; }
public InsuranceProductsResponse setStatus(ReturnStatus value) { this.Status = value; return this; }
public Short getNumberOfPages() { return NumberOfPages; }
public InsuranceProductsResponse setNumberOfPages(Short value) { this.NumberOfPages = value; return this; }
public ArrayList<InsuranceProduct> getInsuranceProducts() { return InsuranceProducts; }
public InsuranceProductsResponse setInsuranceProducts(ArrayList<InsuranceProduct> value) { this.InsuranceProducts = 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; }
}
public static class InsuranceProduct
{
public String CertificateNumber = null;
public String ProductType = null;
public Date StartDate = null;
public Date EndDate = null;
public String Cancelled = null;
public String getCertificateNumber() { return CertificateNumber; }
public InsuranceProduct setCertificateNumber(String value) { this.CertificateNumber = value; return this; }
public String getProductType() { return ProductType; }
public InsuranceProduct setProductType(String value) { this.ProductType = value; return this; }
public Date getStartDate() { return StartDate; }
public InsuranceProduct setStartDate(Date value) { this.StartDate = value; return this; }
public Date getEndDate() { return EndDate; }
public InsuranceProduct setEndDate(Date value) { this.EndDate = value; return this; }
public String getCancelled() { return Cancelled; }
public InsuranceProduct setCancelled(String value) { this.Cancelled = 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 /insuranceproducts/ HTTP/1.1
Host: webservices.mbukdatabase.co.uk
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
CIAMId: String,
ChassisNumber: String,
ItemsPerPage: 0,
PageNumber: 0
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { Status: { ReturnCode: String, Message: String }, NumberOfPages: 0, InsuranceProducts: [ { CertificateNumber: String, ProductType: String, StartDate: 0001-01-01, EndDate: 0001-01-01, Cancelled: String } ] }