POST api/Requests/FilterCount

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

Request Information

URI Parameters

None.

Body Parameters

Модель фильтрации заявок

RequestFindModel
NameDescriptionTypeAdditional information
Filtering

Фильтр

RequestFilterModel

None.

BaseFilter

Базовый фильтр, к которому будет применяться остальная фильтрация

BidFilter

None.

Page

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

integer

None.

Size

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

integer

None.

Sorting

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

RequestSortField

None.

Descending

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

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Filtering": {
    "Departments": [
      1,
      2
    ],
    "Categories": [
      1,
      2
    ],
    "RequestTypes": [
      1,
      2
    ],
    "JobTypes": [
      1,
      2
    ],
    "Initiators": [
      1,
      2
    ],
    "Contractors": [
      1,
      1
    ],
    "Statuses": [
      0,
      0
    ],
    "Regions": [
      1,
      2
    ],
    "HashTags": [
      "sample string 1",
      "sample string 2"
    ],
    "ResponsibilityGroups": [
      1,
      2
    ],
    "Observer": 1,
    "Approver": 1,
    "ActiveApprover": 1,
    "BeginCreateDate": "2022-08-17T04:15:56+03:00",
    "EndCreateDate": "2022-08-17T04:15:56+03:00",
    "Rating": 1,
    "Description": "sample string 1",
    "SeachText": "sample string 2",
    "BossAgreement": true,
    "Feedback": [
      1,
      2
    ],
    "IsActiveApprover": true,
    "IsWithoutContractor": true,
    "DoNotSearchInArchive": true
  },
  "BaseFilter": 0,
  "Page": 1,
  "Size": 2,
  "Sorting": 0,
  "Descending": true
}

text/html, multipart/form-data

Sample:
{"Filtering":{"Departments":[1,2],"Categories":[1,2],"RequestTypes":[1,2],"JobTypes":[1,2],"Initiators":[1,2],"Contractors":[1,1],"Statuses":[0,0],"Regions":[1,2],"HashTags":["sample string 1","sample string 2"],"ResponsibilityGroups":[1,2],"Observer":1,"Approver":1,"ActiveApprover":1,"BeginCreateDate":"2022-08-17T04:15:56+03:00","EndCreateDate":"2022-08-17T04:15:56+03:00","Rating":1,"Description":"sample string 1","SeachText":"sample string 2","BossAgreement":true,"Feedback":[1,2],"IsActiveApprover":true,"IsWithoutContractor":true,"DoNotSearchInArchive":true},"BaseFilter":0,"Page":1,"Size":2,"Sorting":0,"Descending":true}

application/xml, text/xml

Sample:
<RequestFindModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.Requests">
  <BaseFilter>All</BaseFilter>
  <Descending>true</Descending>
  <Filtering>
    <ActiveApprover>1</ActiveApprover>
    <Approver>1</Approver>
    <BeginCreateDate>2022-08-17T04:15:56.1915955+03:00</BeginCreateDate>
    <BossAgreement>true</BossAgreement>
    <Categories xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </Categories>
    <Contractors xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>1</d3p1:int>
    </Contractors>
    <Departments xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </Departments>
    <Description>sample string 1</Description>
    <DoNotSearchInArchive>true</DoNotSearchInArchive>
    <EndCreateDate>2022-08-17T04:15:56.1915955+03:00</EndCreateDate>
    <Feedback xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </Feedback>
    <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>
    <IsActiveApprover>true</IsActiveApprover>
    <IsWithoutContractor>true</IsWithoutContractor>
    <JobTypes xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </JobTypes>
    <Observer>1</Observer>
    <Rating>1</Rating>
    <Regions xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </Regions>
    <RequestTypes xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </RequestTypes>
    <ResponsibilityGroups xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </ResponsibilityGroups>
    <SeachText>sample string 2</SeachText>
    <Statuses>
      <RequestStatus>None</RequestStatus>
      <RequestStatus>None</RequestStatus>
    </Statuses>
  </Filtering>
  <Page>1</Page>
  <Size>2</Size>
  <Sorting>Id</Sorting>
</RequestFindModel>

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>