POST api/Tasks/FilterCount

Кол-во задач с учетом фильтра

Request Information

URI Parameters

None.

Body Parameters

Модель фильтрации задач

TaskFindModel
NameDescriptionTypeAdditional information
Filtering

Фильтр

TaskFilterModel

None.

Page

Номер страницы

integer

None.

Size

Размер страницы

integer

None.

Sorting

Тип сортировки

TaskSortField

None.

Descending

Направление сортировки (false - asc, true - desc)

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Filtering": {
    "Initiators": [
      1,
      2
    ],
    "Contractors": [
      1,
      2
    ],
    "Statuses": [
      0,
      0
    ],
    "Priority": [
      0,
      0
    ],
    "HashTags": [
      "sample string 1",
      "sample string 2"
    ],
    "Observer": 1,
    "Approver": 1,
    "ActiveApprover": 1,
    "BeginCreateDate": "2022-08-17T03:39:47+03:00",
    "EndCreateDate": "2022-08-17T03:39:47+03:00",
    "BeginCompleteDate": "2022-08-17T03:39:47+03:00",
    "EndCompleteDate": "2022-08-17T03:39:47+03:00",
    "Rating": 1,
    "Description": "sample string 1",
    "Subject": "sample string 2"
  },
  "Page": 1,
  "Size": 2,
  "Sorting": 0,
  "Descending": true
}

text/html, multipart/form-data

Sample:
{"Filtering":{"Initiators":[1,2],"Contractors":[1,2],"Statuses":[0,0],"Priority":[0,0],"HashTags":["sample string 1","sample string 2"],"Observer":1,"Approver":1,"ActiveApprover":1,"BeginCreateDate":"2022-08-17T03:39:47+03:00","EndCreateDate":"2022-08-17T03:39:47+03:00","BeginCompleteDate":"2022-08-17T03:39:47+03:00","EndCompleteDate":"2022-08-17T03:39:47+03:00","Rating":1,"Description":"sample string 1","Subject":"sample string 2"},"Page":1,"Size":2,"Sorting":0,"Descending":true}

application/xml, text/xml

Sample:
<TaskFindModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.Requests">
  <Descending>true</Descending>
  <Filtering>
    <ActiveApprover>1</ActiveApprover>
    <Approver>1</Approver>
    <BeginCompleteDate>2022-08-17T03:39:47.9071037+03:00</BeginCompleteDate>
    <BeginCreateDate>2022-08-17T03:39:47.9071037+03:00</BeginCreateDate>
    <Contractors xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </Contractors>
    <Description>sample string 1</Description>
    <EndCompleteDate>2022-08-17T03:39:47.9071037+03:00</EndCompleteDate>
    <EndCreateDate>2022-08-17T03:39:47.9071037+03:00</EndCreateDate>
    <HashTags xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </HashTags>
    <Initiators xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </Initiators>
    <Observer>1</Observer>
    <Priority xmlns:d3p1="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.Tasks">
      <d3p1:TaskPriority>None</d3p1:TaskPriority>
      <d3p1:TaskPriority>None</d3p1:TaskPriority>
    </Priority>
    <Rating>1</Rating>
    <Statuses xmlns:d3p1="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.Tasks">
      <d3p1:TaskStatus>None</d3p1:TaskStatus>
      <d3p1:TaskStatus>None</d3p1:TaskStatus>
    </Statuses>
    <Subject>sample string 2</Subject>
  </Filtering>
  <Page>1</Page>
  <Size>2</Size>
  <Sorting>Id</Sorting>
</TaskFindModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Success Resource Description

Список задач

integer

Error Resource Description (Реализовано не везде)

OperationResult

Response Formats

application/json, text/json, text/html, multipart/form-data

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>