POST | /v1/GetAllDataProcessList | Get list of all data processes by the type | |
---|---|---|---|
POST | /v1/GetDataProcessList | Get list of data processes created by the user |
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class DataProcessListByTypeRequest extends DataProcessListRequest
{
}
public static class DataProcessListRequest implements IPost
{
public ArrayList<Integer> type = new ArrayList<Integer>();
public ArrayList<Integer> getType() { return type; }
public DataProcessListRequest setType(ArrayList<Integer> value) { this.type = value; return this; }
}
public static class DataProcessListResponse
{
public ArrayList<DataProcessResponse> dataProcesses = new ArrayList<DataProcessResponse>();
public ArrayList<DataProcessResponse> getDataProcesses() { return dataProcesses; }
public DataProcessListResponse setDataProcesses(ArrayList<DataProcessResponse> value) { this.dataProcesses = value; return this; }
}
public static class DataProcessResponse
{
public Integer id = null;
public Integer type = null;
public String typeName = null;
public String statusName = null;
public Integer status = null;
public Integer totalRecords = null;
public Integer processedRecords = null;
public String fileName = null;
public String originalFileName = null;
public String dateCreated = null;
public String dateStarted = null;
public String dateFinished = null;
public String gasId = null;
public Integer getId() { return id; }
public DataProcessResponse setId(Integer value) { this.id = value; return this; }
public Integer getType() { return type; }
public DataProcessResponse setType(Integer value) { this.type = value; return this; }
public String getTypeName() { return typeName; }
public DataProcessResponse setTypeName(String value) { this.typeName = value; return this; }
public String getStatusName() { return statusName; }
public DataProcessResponse setStatusName(String value) { this.statusName = value; return this; }
public Integer getStatus() { return status; }
public DataProcessResponse setStatus(Integer value) { this.status = value; return this; }
public Integer getTotalRecords() { return totalRecords; }
public DataProcessResponse setTotalRecords(Integer value) { this.totalRecords = value; return this; }
public Integer getProcessedRecords() { return processedRecords; }
public DataProcessResponse setProcessedRecords(Integer value) { this.processedRecords = value; return this; }
public String getFileName() { return fileName; }
public DataProcessResponse setFileName(String value) { this.fileName = value; return this; }
public String getOriginalFileName() { return originalFileName; }
public DataProcessResponse setOriginalFileName(String value) { this.originalFileName = value; return this; }
public String getDateCreated() { return dateCreated; }
public DataProcessResponse setDateCreated(String value) { this.dateCreated = value; return this; }
public String getDateStarted() { return dateStarted; }
public DataProcessResponse setDateStarted(String value) { this.dateStarted = value; return this; }
public String getDateFinished() { return dateFinished; }
public DataProcessResponse setDateFinished(String value) { this.dateFinished = value; return this; }
public String getGasId() { return gasId; }
public DataProcessResponse setGasId(String value) { this.gasId = value; return this; }
}
}
Java DataProcessListByTypeRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/GetAllDataProcessList HTTP/1.1
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<DataProcessListByTypeRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mercedes.VehicleManagement.API.ServiceModel.DataProcess">
<Type xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>0</d2p1:int>
</Type>
</DataProcessListByTypeRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <DataProcessListResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mercedes.VehicleManagement.API.Shared.POCO.DataProcess"> <DataProcesses> <DataProcessResponse> <DateCreated>String</DateCreated> <DateFinished>String</DateFinished> <DateStarted>String</DateStarted> <FileName>String</FileName> <GasId>String</GasId> <Id>0</Id> <OriginalFileName>String</OriginalFileName> <ProcessedRecords>0</ProcessedRecords> <Status>0</Status> <StatusName>String</StatusName> <TotalRecords>0</TotalRecords> <Type>0</Type> <TypeName>String</TypeName> </DataProcessResponse> </DataProcesses> </DataProcessListResponse>