| Requires any of the roles: | Client, Admin, Partner |
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class Requests extends ArrayList<CSVRequestsArr>
{
}
public static class CSVRequestsArr
{
public Integer BatchId = null;
public JsonObject Data = null;
public ArrayList<CSVErrors> Errors = null;
public Integer getBatchId() { return BatchId; }
public CSVRequestsArr setBatchId(Integer value) { this.BatchId = value; return this; }
public JsonObject getData() { return Data; }
public CSVRequestsArr setData(JsonObject value) { this.Data = value; return this; }
public ArrayList<CSVErrors> getErrors() { return Errors; }
public CSVRequestsArr setErrors(ArrayList<CSVErrors> value) { this.Errors = value; return this; }
}
public static class JsonObject extends HashMap<String,String>
{
}
public static class CSVErrors
{
public String type = null;
public String code = null;
public String message = null;
public String row = null;
public String getType() { return type; }
public CSVErrors setType(String value) { this.type = value; return this; }
public String getCode() { return code; }
public CSVErrors setCode(String value) { this.code = value; return this; }
public String getMessage() { return message; }
public CSVErrors setMessage(String value) { this.message = value; return this; }
public String getRow() { return row; }
public CSVErrors setRow(String value) { this.row = value; return this; }
}
public static class CSVRequestsArrResponse extends ArrayList<MetaParseUpload>
{
}
@DataContract
public static class MetaParseUpload
{
@DataMember(Order=1)
public String Data = null;
public String getData() { return Data; }
public MetaParseUpload setData(String value) { this.Data = value; return this; }
}
}
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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /json/reply/Requests HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: application/json
Content-Type: application/json
Content-Length: length
[]
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length []