tvpl.api

<back to all web services

CreateWorkflowRequest

Requires Authentication
The following routes are available for this service:
POST/workflow
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports tvpl.api.ServiceModel
Imports tvpl.data.Models

Namespace Global

    Namespace tvpl.api.ServiceModel

        Public Partial Class CreateWorkflowRequest
            Public Overridable Property Title As String
            Public Overridable Property Description As String
            Public Overridable Property DocumentCode As String
            Public Overridable Property DocumentTypeId As Nullable(Of Integer)
            Public Overridable Property IsInstance As Boolean
            Public Overridable Property MainId As Nullable(Of Integer)
        End Class
    End Namespace

    Namespace tvpl.data.Models

        Public Partial Class Workflow
            Public Overridable Property Id As Integer
            <Required>
            <StringLength(500)>
            Public Overridable Property Title As String

            <StringLength(4000)>
            Public Overridable Property Description As String

            <StringLength(100)>
            Public Overridable Property DocumentCode As String

            Public Overridable Property DocumentTypeId As Nullable(Of Integer)
            Public Overridable Property IsInstance As Boolean
            Public Overridable Property MainId As Nullable(Of Integer)
            Public Overridable Property IsActive As Boolean
            Public Overridable Property StatusId As Nullable(Of Integer)
            Public Overridable Property AccountId As Nullable(Of Integer)
            Public Overridable Property DepartmentId As Nullable(Of Integer)
            <Ignore>
            Public Overridable Property ScopeType As Integer

            <StringLength(500)>
            Public Overridable Property CreatedBy As String

            Public Overridable Property CreatedAt As Date
            <StringLength(500)>
            Public Overridable Property UpdatedBy As String

            Public Overridable Property UpdatedAt As Nullable(Of Date)
        End Class
    End Namespace
End Namespace

VB.NET CreateWorkflowRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /workflow HTTP/1.1 
Host: qlcn-api.vsmlab.vn 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"title":"String","description":"String","documentCode":"String","documentTypeId":0,"isInstance":false,"mainId":0}
HTTP/1.1 200 OK
Content-Type: application/json
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"}