POST | /delete/ |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class Delete
{
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 Delete setCiamId(String value) { this.CiamId = value; return this; }
public String getFirstName() { return FirstName; }
public Delete setFirstName(String value) { this.FirstName = value; return this; }
public String getLastName() { return LastName; }
public Delete setLastName(String value) { this.LastName = value; return this; }
public String getEmailAddress() { return EmailAddress; }
public Delete setEmailAddress(String value) { this.EmailAddress = value; return this; }
public String getMobileTelephoneNumber() { return MobileTelephoneNumber; }
public Delete setMobileTelephoneNumber(String value) { this.MobileTelephoneNumber = value; return this; }
}
public static class DeleteResponse
{
public ReturnStatus Status = null;
public ReturnStatus getStatus() { return Status; }
public DeleteResponse setStatus(ReturnStatus value) { this.Status = 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 /delete/ HTTP/1.1
Host: webservices.mbukdatabase.co.uk
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"CiamId":"String","FirstName":"String","LastName":"String","EmailAddress":"String","MobileTelephoneNumber":"String"}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"Status":{"ReturnCode":"String","Message":"String"}}