| GET | /WorkflowStep/flowchart |
|---|
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class WorkflowNode:
step_id: int = 0
step_name: Optional[str] = None
signer_id: int = 0
signer_name: Optional[str] = None
department_name: Optional[str] = None
telephone: Optional[str] = None
avatar: Optional[str] = None
email: Optional[str] = None
signer_type: int = 0
action_type: int = 0
status: int = 0
status_text: Optional[str] = None
sign_status_text: Optional[str] = None
sign_at: Optional[datetime.datetime] = None
is_signed: bool = False
confirm_status: Optional[int] = None
confirm_status_text: Optional[str] = None
signed_file_id: Optional[int] = None
signed_file_name: Optional[str] = None
is_current: bool = False
reason_return: Optional[str] = None
return_date: Optional[datetime.datetime] = None
action_date: Optional[datetime.datetime] = None
order_index: int = 0
is_using_form: bool = False
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class GetWorkflowFlowchartResponse(IResponseRequest):
code: int = 0
message: Optional[str] = None
data: Optional[List[WorkflowNode]] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class GetWorkflowFlowchartRequest:
workflow_id: int = 0
Python GetWorkflowFlowchartRequest 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.
GET /WorkflowStep/flowchart HTTP/1.1 Host: etc-api.vsmlab.vn Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"code":0,"message":"String","data":[{"stepId":0,"stepName":"String","signerId":0,"signerName":"String","departmentName":"String","telephone":"String","avatar":"String","email":"String","signerType":0,"actionType":0,"status":0,"statusText":"String","signStatusText":"String","signAt":"0001-01-01T00:00:00.0000000+07:06","isSigned":false,"confirmStatus":0,"confirmStatusText":"String","signedFileId":0,"signedFileName":"String","isCurrent":false,"reasonReturn":"String","returnDate":"0001-01-01T00:00:00.0000000+07:06","actionDate":"0001-01-01T00:00:00.0000000+07:06","orderIndex":0,"isUsingForm":false}]}