| GET | /procurement/batch/{Id} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetProcurementBatchByIdRequest
{
public Integer id = null;
public Integer getId() { return id; }
public GetProcurementBatchByIdRequest setId(Integer value) { this.id = value; return this; }
}
public static class ProcurementBatch
{
public Integer id = null;
@Required()
@StringLength(500)
public String title = null;
public Date deadline = null;
public String description = null;
public Integer status = null;
public Date createdAt = null;
public Integer createdBy = null;
public Date closedAt = null;
public Integer closedBy = null;
public Boolean isDeleted = null;
public Date deletedAt = null;
public Integer deletedBy = null;
@Ignore()
public String createdByName = null;
@Ignore()
public Integer itemCount = null;
public Integer getId() { return id; }
public ProcurementBatch setId(Integer value) { this.id = value; return this; }
public String getTitle() { return title; }
public ProcurementBatch setTitle(String value) { this.title = value; return this; }
public Date getDeadline() { return deadline; }
public ProcurementBatch setDeadline(Date value) { this.deadline = value; return this; }
public String getDescription() { return description; }
public ProcurementBatch setDescription(String value) { this.description = value; return this; }
public Integer getStatus() { return status; }
public ProcurementBatch setStatus(Integer value) { this.status = value; return this; }
public Date getCreatedAt() { return createdAt; }
public ProcurementBatch setCreatedAt(Date value) { this.createdAt = value; return this; }
public Integer getCreatedBy() { return createdBy; }
public ProcurementBatch setCreatedBy(Integer value) { this.createdBy = value; return this; }
public Date getClosedAt() { return closedAt; }
public ProcurementBatch setClosedAt(Date value) { this.closedAt = value; return this; }
public Integer getClosedBy() { return closedBy; }
public ProcurementBatch setClosedBy(Integer value) { this.closedBy = value; return this; }
public Boolean getIsDeleted() { return isDeleted; }
public ProcurementBatch setIsDeleted(Boolean value) { this.isDeleted = value; return this; }
public Date getDeletedAt() { return deletedAt; }
public ProcurementBatch setDeletedAt(Date value) { this.deletedAt = value; return this; }
public Integer getDeletedBy() { return deletedBy; }
public ProcurementBatch setDeletedBy(Integer value) { this.deletedBy = value; return this; }
public String getCreatedByName() { return createdByName; }
public ProcurementBatch setCreatedByName(String value) { this.createdByName = value; return this; }
public Integer getItemCount() { return itemCount; }
public ProcurementBatch setItemCount(Integer value) { this.itemCount = value; return this; }
}
}
Java GetProcurementBatchByIdRequest 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.
GET /procurement/batch/{Id} HTTP/1.1
Host: etc-api.vsmlab.vn
Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <ProcurementBatch xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/tvpl.data.Models"> <ClosedAt>0001-01-01T00:00:00</ClosedAt> <ClosedBy>0</ClosedBy> <CreatedAt>0001-01-01T00:00:00</CreatedAt> <CreatedBy>0</CreatedBy> <CreatedByName>String</CreatedByName> <Deadline>0001-01-01T00:00:00</Deadline> <DeletedAt>0001-01-01T00:00:00</DeletedAt> <DeletedBy>0</DeletedBy> <Description>String</Description> <Id>0</Id> <IsDeleted>false</IsDeleted> <ItemCount>0</ItemCount> <Status>0</Status> <Title>String</Title> </ProcurementBatch>