tvpl.api

<back to all web services

WorkflowStatisticsByTypeRequest

Requires Authentication
The following routes are available for this service:
GET/workflow/statistics-by-type
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using tvpl.api.ServiceModel;
using tvpl.data.Models;

namespace tvpl.api.ServiceModel
{
    public partial class WorkflowStatisticsByTypeRequest
    {
        public virtual int? TypeId { get; set; }
    }

    public partial class WorkflowStatisticsResponse
    {
        public WorkflowStatisticsResponse()
        {
            Data = new List<LeftMenuItem>{};
        }

        public virtual int Code { get; set; }
        public virtual string Message { get; set; }
        public virtual List<LeftMenuItem> Data { get; set; }
    }

}

namespace tvpl.data.Models
{
    public partial class LeftMenuItem
    {
        public LeftMenuItem()
        {
            Children = new List<LeftMenuItem>{};
        }

        public virtual int Id { get; set; }
        public virtual string Name { get; set; }
        public virtual int Count { get; set; }
        public virtual bool IsParty { get; set; }
        public virtual int Level1ParentId { get; set; }
        public virtual int Level2ParentId { get; set; }
        public virtual int Level { get; set; }
        public virtual string Type { get; set; }
        public virtual string Key { get; set; }
        [Ignore]
        public virtual List<LeftMenuItem> Children { get; set; }
    }

}

C# WorkflowStatisticsByTypeRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

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/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}]}]}]}