| GET | /workflow/statistics |
|---|
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 LeftMenuItem:
id: int = 0
name: Optional[str] = None
count: int = 0
is_party: bool = False
level1_parent_id: int = 0
level2_parent_id: int = 0
level: int = 0
type: Optional[str] = None
key: Optional[str] = None
# @Ignore()
children: Optional[List[LeftMenuItem]] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class WorkflowStatisticsResponse:
code: int = 0
message: Optional[str] = None
data: Optional[List[LeftMenuItem]] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class WorkflowStatisticsRequest:
pass
Python WorkflowStatisticsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /workflow/statistics HTTP/1.1 Host: etc-api.vsmlab.vn Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"code":0,"message":"String","data":[{"id":0,"name":"String","count":0,"isParty":false,"level1ParentId":0,"level2ParentId":0,"level":0,"type":"String","key":"String","children":[{"id":0,"name":"String","count":0,"isParty":false,"level1ParentId":0,"level2ParentId":0,"level":0,"type":"String","key":"String","children":[{"id":0,"name":"String","count":0,"isParty":false,"level1ParentId":0,"level2ParentId":0,"level":0,"type":"String","key":"String","children":null}]}]}]}