POST api/Requests/FilterByStatusOnPeriod

Возвращает отфильтрованные по статусу на период времени заявки (метод доступен только модератору)

Request Information

URI Parameters

None.

Body Parameters

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

StatusForPeriodModel
NameDescriptionTypeAdditional information
Filtering

Фильтр

StatusForPeriodFilterModel

Элемент является обязательным при сохранении

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
    ],
    "ResponsibilityGroups": [
      1,
      2
    ],
    "CurrentStatuses": [
      0,
      0
    ],
    "StatusesForPeriod": [
      0,
      0
    ],
    "BeginDate": "2022-08-17T04:36:10+03:00",
    "EndDate": "2022-08-17T04:36:10+03:00"
  },
  "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],"ResponsibilityGroups":[1,2],"CurrentStatuses":[0,0],"StatusesForPeriod":[0,0],"BeginDate":"2022-08-17T04:36:10+03:00","EndDate":"2022-08-17T04:36:10+03:00"},"Page":1,"Size":2,"Sorting":0,"Descending":true}

application/xml, text/xml

Sample:
<StatusForPeriodModel 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>
    <BeginDate>2022-08-17T04:36:10.5854025+03:00</BeginDate>
    <Categories xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </Categories>
    <CurrentStatuses>
      <RequestStatus>None</RequestStatus>
      <RequestStatus>None</RequestStatus>
    </CurrentStatuses>
    <Departments xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </Departments>
    <EndDate>2022-08-17T04:36:10.5854025+03:00</EndDate>
    <JobTypes xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </JobTypes>
    <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>
    <StatusesForPeriod>
      <RequestStatus>None</RequestStatus>
      <RequestStatus>None</RequestStatus>
    </StatusesForPeriod>
  </Filtering>
  <Page>1</Page>
  <Size>2</Size>
  <Sorting>Id</Sorting>
</StatusForPeriodModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Success Resource Description

Список заявок

RequestListViewModelOfSimplifiedRequestViewModel
NameDescriptionTypeAdditional information
Total

None.

integer

None.

Page

None.

integer

None.

PageSize

None.

integer

None.

Requests

None.

Collection of SimplifiedRequestViewModel

None.

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

OperationResult
NameDescriptionTypeAdditional information
Target

Возвращаемый объект

Object

None.

Status

Статус операции

ResultStatus

None.

Error

Детализация ошибки

Error

None.

Response Formats

application/json, text/json

Sample:
{
  "Total": 1,
  "Page": 2,
  "PageSize": 3,
  "Requests": null
}

text/html, multipart/form-data

Sample:
{"Total":1,"Page":2,"PageSize":3,"Requests":null}

application/xml, text/xml

Sample:
<RequestListViewModelOfSimplifiedRequestViewModel0vtaC1pF xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.Requests">
  <Page>2</Page>
  <PageSize>3</PageSize>
  <Requests i:nil="true" />
  <Total>1</Total>
</RequestListViewModelOfSimplifiedRequestViewModel0vtaC1pF>