| GET | /purchase-history/export |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class ExportPurchaseHistoryRequest
{
public String name = null;
public Integer workflowId = null;
public Integer equipmentId = null;
public Integer providerId = null;
public Date createdFrom = null;
public Date createdTo = null;
public Boolean onlyMissingEquipment = null;
public String getName() { return name; }
public ExportPurchaseHistoryRequest setName(String value) { this.name = value; return this; }
public Integer getWorkflowId() { return workflowId; }
public ExportPurchaseHistoryRequest setWorkflowId(Integer value) { this.workflowId = value; return this; }
public Integer getEquipmentId() { return equipmentId; }
public ExportPurchaseHistoryRequest setEquipmentId(Integer value) { this.equipmentId = value; return this; }
public Integer getProviderId() { return providerId; }
public ExportPurchaseHistoryRequest setProviderId(Integer value) { this.providerId = value; return this; }
public Date getCreatedFrom() { return createdFrom; }
public ExportPurchaseHistoryRequest setCreatedFrom(Date value) { this.createdFrom = value; return this; }
public Date getCreatedTo() { return createdTo; }
public ExportPurchaseHistoryRequest setCreatedTo(Date value) { this.createdTo = value; return this; }
public Boolean isOnlyMissingEquipment() { return onlyMissingEquipment; }
public ExportPurchaseHistoryRequest setOnlyMissingEquipment(Boolean value) { this.onlyMissingEquipment = value; return this; }
}
}
Java ExportPurchaseHistoryRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /purchase-history/export HTTP/1.1 Host: etc-api.vsmlab.vn Accept: text/jsonl
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length (byte[])