| PUT | /workflow/{Id} |
|---|
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 UpdateWorkflowRequest
Public Overridable Property Id As Integer
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 IsActive As Nullable(Of Boolean)
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 UpdateWorkflowRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /workflow/{Id} HTTP/1.1
Host: qlcn-api.vsmlab.vn
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"id":0,"title":"String","description":"String","documentCode":"String","documentTypeId":0,"isActive":false}
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"}