POST | /vehicledetails/ |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class VehicleDetails
{
public String CIAMId = null;
public String ChassisNumber = null;
public String getCiamId() { return CIAMId; }
public VehicleDetails setCiamId(String value) { this.CIAMId = value; return this; }
public String getChassisNumber() { return ChassisNumber; }
public VehicleDetails setChassisNumber(String value) { this.ChassisNumber = value; return this; }
}
public static class VehicleDetailsResponse
{
public ReturnStatus Status = null;
public String KeeperName = null;
public String DriverName = null;
public String AfterSaleName = null;
public Date RegistrationDate = null;
public Date AcquisitionDate = null;
public String FuelType = null;
public Integer LastKnownMileage = null;
public String SellingRetailer = null;
public String ServicingRetailer = null;
public String Colour = null;
public String BodyType = null;
public String Model = null;
public String RegistrationNumber = null;
public String ChassisNumber = null;
public Integer Return = null;
public ReturnStatus getStatus() { return Status; }
public VehicleDetailsResponse setStatus(ReturnStatus value) { this.Status = value; return this; }
public String getKeeperName() { return KeeperName; }
public VehicleDetailsResponse setKeeperName(String value) { this.KeeperName = value; return this; }
public String getDriverName() { return DriverName; }
public VehicleDetailsResponse setDriverName(String value) { this.DriverName = value; return this; }
public String getAfterSaleName() { return AfterSaleName; }
public VehicleDetailsResponse setAfterSaleName(String value) { this.AfterSaleName = value; return this; }
public Date getRegistrationDate() { return RegistrationDate; }
public VehicleDetailsResponse setRegistrationDate(Date value) { this.RegistrationDate = value; return this; }
public Date getAcquisitionDate() { return AcquisitionDate; }
public VehicleDetailsResponse setAcquisitionDate(Date value) { this.AcquisitionDate = value; return this; }
public String getFuelType() { return FuelType; }
public VehicleDetailsResponse setFuelType(String value) { this.FuelType = value; return this; }
public Integer getLastKnownMileage() { return LastKnownMileage; }
public VehicleDetailsResponse setLastKnownMileage(Integer value) { this.LastKnownMileage = value; return this; }
public String getSellingRetailer() { return SellingRetailer; }
public VehicleDetailsResponse setSellingRetailer(String value) { this.SellingRetailer = value; return this; }
public String getServicingRetailer() { return ServicingRetailer; }
public VehicleDetailsResponse setServicingRetailer(String value) { this.ServicingRetailer = value; return this; }
public String getColour() { return Colour; }
public VehicleDetailsResponse setColour(String value) { this.Colour = value; return this; }
public String getBodyType() { return BodyType; }
public VehicleDetailsResponse setBodyType(String value) { this.BodyType = value; return this; }
public String getModel() { return Model; }
public VehicleDetailsResponse setModel(String value) { this.Model = value; return this; }
public String getRegistrationNumber() { return RegistrationNumber; }
public VehicleDetailsResponse setRegistrationNumber(String value) { this.RegistrationNumber = value; return this; }
public String getChassisNumber() { return ChassisNumber; }
public VehicleDetailsResponse setChassisNumber(String value) { this.ChassisNumber = value; return this; }
public Integer getReturn() { return Return; }
public VehicleDetailsResponse setReturn(Integer value) { this.Return = 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 .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /vehicledetails/ HTTP/1.1
Host: webservices.mbukdatabase.co.uk
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"CIAMId":"String","ChassisNumber":"String"}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"Status":{"ReturnCode":"String","Message":"String"},"KeeperName":"String","DriverName":"String","AfterSaleName":"String","RegistrationDate":"\/Date(-62135596800000-0000)\/","AcquisitionDate":"\/Date(-62135596800000-0000)\/","FuelType":"String","LastKnownMileage":0,"SellingRetailer":"String","ServicingRetailer":"String","Colour":"String","BodyType":"String","Model":"String","RegistrationNumber":"String","ChassisNumber":"String","Return":0}