| GET | /workflow/{WorkflowId}/advanced-info |
|---|
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 AdvancedWorkflowInfoData
Public Sub New()
PurchaseHistory = New List(Of PurchaseHistory)
End Sub
Public Overridable Property Provider As Provider
Public Overridable Property Contract As Contract
Public Overridable Property Estimate As Estimate
Public Overridable Property PurchaseHistory As List(Of PurchaseHistory)
End Class
Public Partial Class AdvancedWorkflowInfoResponse
Public Overridable Property Code As Integer
Public Overridable Property Message As String
Public Overridable Property Data As AdvancedWorkflowInfoData
End Class
Public Partial Class GetAdvancedWorkflowInfoRequest
Public Overridable Property WorkflowId As Integer
End Class
End Namespace
Namespace tvpl.data.Models
Public Partial Class Contract
Public Overridable Property Id As Integer
<Required>
Public Overridable Property WorkflowId As Integer
<StringLength(100)>
Public Overridable Property ContractNo As String
<StringLength(100)>
Public Overridable Property ContractDate As String
Public Overridable Property ServiceName As String
<StringLength(100)>
Public Overridable Property ContractType As String
Public Overridable Property Objective As String
Public Overridable Property Location As String
Public Overridable Property CreatedAt As Date
<Required>
Public Overridable Property CreatedBy As Integer
End Class
Public Partial Class Estimate
Public Overridable Property Id As Integer
<Required>
Public Overridable Property WorkflowId As Integer
Public Overridable Property ValueBeforeTax As Nullable(Of Integer)
Public Overridable Property TaxAmount As Nullable(Of Integer)
Public Overridable Property TotalAmount As Nullable(Of Integer)
Public Overridable Property CreatedAt As Date
<Required>
Public Overridable Property CreatedBy As Integer
End Class
Public Partial Class Provider
Public Overridable Property Id As Integer
Public Overridable Property Name As String
Public Overridable Property TaxCode As String
Public Overridable Property Address As String
Public Overridable Property Email As String
Public Overridable Property Phone As String
Public Overridable Property AdditionalInfo As String
Public Overridable Property ProviderType As Integer
Public Overridable Property CreatedAt As Nullable(Of Date)
Public Overridable Property CreatedBy As Nullable(Of Integer)
End Class
Public Partial Class PurchaseHistory
Public Overridable Property Id As Integer
<Required>
Public Overridable Property WorkflowId As Integer
Public Overridable Property SequenceNo As Nullable(Of Integer)
Public Overridable Property Detail As String
<StringLength(150)>
Public Overridable Property Unit As String
Public Overridable Property Quantity As Nullable(Of Integer)
Public Overridable Property UnitPrice As Nullable(Of Integer)
Public Overridable Property Amount As Nullable(Of Integer)
Public Overridable Property Note As String
Public Overridable Property CreatedAt As Date
<Required>
Public Overridable Property CreatedBy As Integer
End Class
End Namespace
End Namespace
VB.NET GetAdvancedWorkflowInfoRequest 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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /workflow/{WorkflowId}/advanced-info HTTP/1.1
Host: etc-api.vsmlab.vn
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"code":0,"message":"String","data":{"provider":{"id":0,"name":"String","taxCode":"String","address":"String","email":"String","phone":"String","additionalInfo":"String","providerType":0,"createdAt":"0001-01-01T00:00:00.0000000+07:06","createdBy":0},"contract":{"id":0,"workflowId":0,"contractNo":"String","contractDate":"String","serviceName":"String","contractType":"String","objective":"String","location":"String","createdAt":"0001-01-01T00:00:00.0000000+07:06","createdBy":0},"estimate":{"id":0,"workflowId":0,"valueBeforeTax":0,"taxAmount":0,"totalAmount":0,"createdAt":"0001-01-01T00:00:00.0000000+07:06","createdBy":0},"purchaseHistory":[{"id":0,"workflowId":0,"sequenceNo":0,"detail":"String","unit":"String","quantity":0,"unitPrice":0,"amount":0,"note":"String","createdAt":"0001-01-01T00:00:00.0000000+07:06","createdBy":0}]}}