tvpl.api

<back to all web services

GetProcurementBatchByIdRequest

Requires Authentication
The following routes are available for this service:
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 .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	id: 0,
	title: String,
	description: String,
	status: 0,
	createdAt: "0001-01-01T00:00:00.0000000+07:06",
	createdBy: 0,
	closedAt: "0001-01-01T00:00:00.0000000+07:06",
	closedBy: 0,
	isDeleted: False,
	deletedAt: "0001-01-01T00:00:00.0000000+07:06",
	deletedBy: 0,
	createdByName: String,
	itemCount: 0
}