| GET | /workflow/statistics-by-type |
|---|
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 WorkflowStatisticsByTypeRequest:
type_id: Optional[int] = None
Python WorkflowStatisticsByTypeRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /workflow/statistics-by-type HTTP/1.1 Host: etc-api.vsmlab.vn Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
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
}
]
}
]
}
]
}