tvpl.api

<back to all web services

GetWorkflowByIdRequest

Requires Authentication
The following routes are available for this service:
GET/workflow/{Id}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class GetWorkflowByIdRequest
    {
        public Integer id = null;
        
        public Integer getId() { return id; }
        public GetWorkflowByIdRequest setId(Integer value) { this.id = value; return this; }
    }

    public static class Workflow
    {
        public Integer id = null;
        @Required()
        @StringLength(500)
        public String title = null;

        @StringLength(4000)
        public String description = null;

        @StringLength(100)
        public String documentCode = null;

        public Integer documentTypeId = null;
        public Boolean isInstance = null;
        public Integer mainId = null;
        public Boolean isActive = null;
        public Integer statusId = null;
        public Integer accountId = null;
        public Integer departmentId = null;
        @Ignore()
        public Integer scopeType = null;

        @StringLength(500)
        public String createdBy = null;

        public Date createdAt = null;
        @StringLength(500)
        public String updatedBy = null;

        public Date updatedAt = null;
        
        public Integer getId() { return id; }
        public Workflow setId(Integer value) { this.id = value; return this; }
        public String getTitle() { return title; }
        public Workflow setTitle(String value) { this.title = value; return this; }
        public String getDescription() { return description; }
        public Workflow setDescription(String value) { this.description = value; return this; }
        public String getDocumentCode() { return documentCode; }
        public Workflow setDocumentCode(String value) { this.documentCode = value; return this; }
        public Integer getDocumentTypeId() { return documentTypeId; }
        public Workflow setDocumentTypeId(Integer value) { this.documentTypeId = value; return this; }
        public Boolean getIsInstance() { return isInstance; }
        public Workflow setIsInstance(Boolean value) { this.isInstance = value; return this; }
        public Integer getMainId() { return mainId; }
        public Workflow setMainId(Integer value) { this.mainId = value; return this; }
        public Boolean getIsActive() { return isActive; }
        public Workflow setIsActive(Boolean value) { this.isActive = value; return this; }
        public Integer getStatusId() { return statusId; }
        public Workflow setStatusId(Integer value) { this.statusId = value; return this; }
        public Integer getAccountId() { return accountId; }
        public Workflow setAccountId(Integer value) { this.accountId = value; return this; }
        public Integer getDepartmentId() { return departmentId; }
        public Workflow setDepartmentId(Integer value) { this.departmentId = value; return this; }
        public Integer getScopeType() { return scopeType; }
        public Workflow setScopeType(Integer value) { this.scopeType = value; return this; }
        public String getCreatedBy() { return createdBy; }
        public Workflow setCreatedBy(String value) { this.createdBy = value; return this; }
        public Date getCreatedAt() { return createdAt; }
        public Workflow setCreatedAt(Date value) { this.createdAt = value; return this; }
        public String getUpdatedBy() { return updatedBy; }
        public Workflow setUpdatedBy(String value) { this.updatedBy = value; return this; }
        public Date getUpdatedAt() { return updatedAt; }
        public Workflow setUpdatedAt(Date value) { this.updatedAt = value; return this; }
    }

}

Java GetWorkflowByIdRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /workflow/{Id} HTTP/1.1 
Host: qlcn-api.vsmlab.vn 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"id":0,"title":"String","description":"String","documentCode":"String","documentTypeId":0,"isInstance":false,"mainId":0,"isActive":false,"statusId":0,"accountId":0,"departmentId":0,"scopeType":2,"createdBy":"String","createdAt":"0001-01-01T00:00:00.0000000+07:06","updatedBy":"String","updatedAt":"0001-01-01T00:00:00.0000000+07:06"}