GET api/Requests/UserFilters

Сохраненные фильтры текущего пользователя

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Success Resource Description

Список сохраненных пользовательских фильтров

Collection of UserRequestFilterModel
NameDescriptionTypeAdditional information
Filter

Содержимое фильтра

RequestFilter

None.

Id

Идентификатор пользовательского фильтра

integer

Элемент не учитывается при создании/вставке

Name

Наименование пользовательского фильтра

string

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

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

OperationResult
NameDescriptionTypeAdditional information
Target

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

Object

None.

Status

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

ResultStatus

None.

Error

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

Error

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Filter": {
      "Departments": [
        1,
        2
      ],
      "Categories": [
        1,
        2
      ],
      "RequestTypes": [
        1,
        2
      ],
      "JobTypes": [
        1,
        2
      ],
      "Initiators": [
        1,
        2
      ],
      "Contractors": [
        1,
        1
      ],
      "Statuses": [
        1,
        2
      ],
      "Regions": [
        1,
        2
      ],
      "HashTags": [
        "sample string 1",
        "sample string 2"
      ],
      "ResponsibilityGroups": [
        1,
        2
      ],
      "Observer": 1,
      "Approver": 1,
      "ActiveApprover": 1,
      "BeginCreateDate": "2022-08-17T03:45:53+03:00",
      "EndCreateDate": "2022-08-17T03:45:53+03:00",
      "Rating": 1,
      "Description": "sample string 1",
      "SeachRequest": "sample string 2",
      "Feedback": [
        1,
        2
      ],
      "IsActiveApprover": true,
      "IsWithoutContractor": true
    },
    "Id": 1,
    "Name": "sample string 2"
  },
  {
    "Filter": {
      "Departments": [
        1,
        2
      ],
      "Categories": [
        1,
        2
      ],
      "RequestTypes": [
        1,
        2
      ],
      "JobTypes": [
        1,
        2
      ],
      "Initiators": [
        1,
        2
      ],
      "Contractors": [
        1,
        1
      ],
      "Statuses": [
        1,
        2
      ],
      "Regions": [
        1,
        2
      ],
      "HashTags": [
        "sample string 1",
        "sample string 2"
      ],
      "ResponsibilityGroups": [
        1,
        2
      ],
      "Observer": 1,
      "Approver": 1,
      "ActiveApprover": 1,
      "BeginCreateDate": "2022-08-17T03:45:53+03:00",
      "EndCreateDate": "2022-08-17T03:45:53+03:00",
      "Rating": 1,
      "Description": "sample string 1",
      "SeachRequest": "sample string 2",
      "Feedback": [
        1,
        2
      ],
      "IsActiveApprover": true,
      "IsWithoutContractor": true
    },
    "Id": 1,
    "Name": "sample string 2"
  }
]

text/html, multipart/form-data

Sample:
[{"Filter":{"Departments":[1,2],"Categories":[1,2],"RequestTypes":[1,2],"JobTypes":[1,2],"Initiators":[1,2],"Contractors":[1,1],"Statuses":[1,2],"Regions":[1,2],"HashTags":["sample string 1","sample string 2"],"ResponsibilityGroups":[1,2],"Observer":1,"Approver":1,"ActiveApprover":1,"BeginCreateDate":"2022-08-17T03:45:53+03:00","EndCreateDate":"2022-08-17T03:45:53+03:00","Rating":1,"Description":"sample string 1","SeachRequest":"sample string 2","Feedback":[1,2],"IsActiveApprover":true,"IsWithoutContractor":true},"Id":1,"Name":"sample string 2"},{"Filter":{"Departments":[1,2],"Categories":[1,2],"RequestTypes":[1,2],"JobTypes":[1,2],"Initiators":[1,2],"Contractors":[1,1],"Statuses":[1,2],"Regions":[1,2],"HashTags":["sample string 1","sample string 2"],"ResponsibilityGroups":[1,2],"Observer":1,"Approver":1,"ActiveApprover":1,"BeginCreateDate":"2022-08-17T03:45:53+03:00","EndCreateDate":"2022-08-17T03:45:53+03:00","Rating":1,"Description":"sample string 1","SeachRequest":"sample string 2","Feedback":[1,2],"IsActiveApprover":true,"IsWithoutContractor":true},"Id":1,"Name":"sample string 2"}]

application/xml, text/xml

Sample:
<ArrayOfUserRequestFilterModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.Requests">
  <UserRequestFilterModel>
    <Filter xmlns:d3p1="http://schemas.datacontract.org/2004/07/AGAT.TSSM.Logic.Filtering">
      <d3p1:ActiveApprover>1</d3p1:ActiveApprover>
      <d3p1:Approver>1</d3p1:Approver>
      <d3p1:BeginCreateDate>2022-08-17T03:45:53.5309335+03:00</d3p1:BeginCreateDate>
      <d3p1:Categories xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </d3p1:Categories>
      <d3p1:Contractors xmlns:d4p1="http://schemas.datacontract.org/2004/07/System">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>1</d4p1:int>
      </d3p1:Contractors>
      <d3p1:Departments xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </d3p1:Departments>
      <d3p1:Description>sample string 1</d3p1:Description>
      <d3p1:EndCreateDate>2022-08-17T03:45:53.5309335+03:00</d3p1:EndCreateDate>
      <d3p1:Feedback xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </d3p1:Feedback>
      <d3p1:HashTags xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </d3p1:HashTags>
      <d3p1:Initiators xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </d3p1:Initiators>
      <d3p1:IsActiveApprover>true</d3p1:IsActiveApprover>
      <d3p1:IsWithoutContractor>true</d3p1:IsWithoutContractor>
      <d3p1:JobTypes xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </d3p1:JobTypes>
      <d3p1:Observer>1</d3p1:Observer>
      <d3p1:Rating>1</d3p1:Rating>
      <d3p1:Regions xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </d3p1:Regions>
      <d3p1:RequestTypes xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </d3p1:RequestTypes>
      <d3p1:ResponsibilityGroups xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </d3p1:ResponsibilityGroups>
      <d3p1:SeachRequest>sample string 2</d3p1:SeachRequest>
      <d3p1:Statuses xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </d3p1:Statuses>
    </Filter>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </UserRequestFilterModel>
  <UserRequestFilterModel>
    <Filter xmlns:d3p1="http://schemas.datacontract.org/2004/07/AGAT.TSSM.Logic.Filtering">
      <d3p1:ActiveApprover>1</d3p1:ActiveApprover>
      <d3p1:Approver>1</d3p1:Approver>
      <d3p1:BeginCreateDate>2022-08-17T03:45:53.5309335+03:00</d3p1:BeginCreateDate>
      <d3p1:Categories xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </d3p1:Categories>
      <d3p1:Contractors xmlns:d4p1="http://schemas.datacontract.org/2004/07/System">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>1</d4p1:int>
      </d3p1:Contractors>
      <d3p1:Departments xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </d3p1:Departments>
      <d3p1:Description>sample string 1</d3p1:Description>
      <d3p1:EndCreateDate>2022-08-17T03:45:53.5309335+03:00</d3p1:EndCreateDate>
      <d3p1:Feedback xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </d3p1:Feedback>
      <d3p1:HashTags xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </d3p1:HashTags>
      <d3p1:Initiators xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </d3p1:Initiators>
      <d3p1:IsActiveApprover>true</d3p1:IsActiveApprover>
      <d3p1:IsWithoutContractor>true</d3p1:IsWithoutContractor>
      <d3p1:JobTypes xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </d3p1:JobTypes>
      <d3p1:Observer>1</d3p1:Observer>
      <d3p1:Rating>1</d3p1:Rating>
      <d3p1:Regions xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </d3p1:Regions>
      <d3p1:RequestTypes xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </d3p1:RequestTypes>
      <d3p1:ResponsibilityGroups xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </d3p1:ResponsibilityGroups>
      <d3p1:SeachRequest>sample string 2</d3p1:SeachRequest>
      <d3p1:Statuses xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </d3p1:Statuses>
    </Filter>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </UserRequestFilterModel>
</ArrayOfUserRequestFilterModel>