POST api/Requests/RequestsByIdList

Заявки с комментариями по списку идентификаторов, доступно только модератору

Request Information

URI Parameters

None.

Body Parameters

Список идентификаторов заявок

Collection of integer

Request Formats

application/json, text/json

Sample:
[
  1,
  2
]

text/html, multipart/form-data

Sample:
[1,2]

application/xml, text/xml

Sample:
<ArrayOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <int>1</int>
  <int>2</int>
</ArrayOfint>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Success Resource Description

RequestListViewModelOfRequestBasicViewModel
NameDescriptionTypeAdditional information
Total

None.

integer

None.

Page

None.

integer

None.

PageSize

None.

integer

None.

Requests

None.

Collection of RequestBasicViewModel

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": [
    {
      "LastModifiedDate": "2022-08-17T04:06:39+03:00",
      "Id": 1,
      "Status": 0,
      "Department": {
        "Id": 1,
        "Name": "sample string 2",
        "IsActual": true,
        "Editable": true,
        "DateCreated": "2022-08-17T04:06:39+03:00"
      },
      "Category": {
        "Id": 1,
        "DepartmentId": 2,
        "Name": "sample string 3",
        "IsActual": true,
        "Editable": true,
        "DateCreated": "2022-08-17T04:06:39+03:00"
      },
      "RequestType": {
        "Id": 1,
        "CategoryId": 2,
        "Name": "sample string 3",
        "IsActual": true,
        "Editable": true,
        "DateCreated": "2022-08-17T04:06:39+03:00"
      },
      "JobType": {
        "Id": 1,
        "RequestTypeId": 2,
        "Name": "sample string 3",
        "IsActual": true,
        "Editable": true,
        "DateCreated": "2022-08-17T04:06:39+03:00"
      },
      "Description": "sample string 2",
      "Initiator": {
        "Id": 1,
        "Login": "sample string 2",
        "FirstName": "sample string 3",
        "LastName": "sample string 4",
        "RegionId": 5,
        "Appoint": "sample string 6",
        "Organization": "sample string 7"
      },
      "Contractor": {
        "Id": 1,
        "Login": "sample string 2",
        "FirstName": "sample string 3",
        "LastName": "sample string 4",
        "RegionId": 5,
        "Appoint": "sample string 6",
        "Organization": "sample string 7"
      },
      "Region": {
        "Id": 1,
        "Code": "sample string 2",
        "Name": "sample string 3"
      },
      "CreateDate": "2022-08-17T04:06:39+03:00",
      "Laboriousness": 4,
      "ExpiredTimeLeft": 5,
      "IsExpiredFactTimeExecution": true,
      "RequiredStartDate": "2022-08-17T04:06:39+03:00",
      "CustomFields": [
        {
          "CustomFieldId": 1,
          "ValueId": 1,
          "Value": "sample string 2"
        },
        {
          "CustomFieldId": 1,
          "ValueId": 1,
          "Value": "sample string 2"
        }
      ],
      "SubRequests": [
        1,
        2
      ]
    },
    {
      "LastModifiedDate": "2022-08-17T04:06:39+03:00",
      "Id": 1,
      "Status": 0,
      "Department": {
        "Id": 1,
        "Name": "sample string 2",
        "IsActual": true,
        "Editable": true,
        "DateCreated": "2022-08-17T04:06:39+03:00"
      },
      "Category": {
        "Id": 1,
        "DepartmentId": 2,
        "Name": "sample string 3",
        "IsActual": true,
        "Editable": true,
        "DateCreated": "2022-08-17T04:06:39+03:00"
      },
      "RequestType": {
        "Id": 1,
        "CategoryId": 2,
        "Name": "sample string 3",
        "IsActual": true,
        "Editable": true,
        "DateCreated": "2022-08-17T04:06:39+03:00"
      },
      "JobType": {
        "Id": 1,
        "RequestTypeId": 2,
        "Name": "sample string 3",
        "IsActual": true,
        "Editable": true,
        "DateCreated": "2022-08-17T04:06:39+03:00"
      },
      "Description": "sample string 2",
      "Initiator": {
        "Id": 1,
        "Login": "sample string 2",
        "FirstName": "sample string 3",
        "LastName": "sample string 4",
        "RegionId": 5,
        "Appoint": "sample string 6",
        "Organization": "sample string 7"
      },
      "Contractor": {
        "Id": 1,
        "Login": "sample string 2",
        "FirstName": "sample string 3",
        "LastName": "sample string 4",
        "RegionId": 5,
        "Appoint": "sample string 6",
        "Organization": "sample string 7"
      },
      "Region": {
        "Id": 1,
        "Code": "sample string 2",
        "Name": "sample string 3"
      },
      "CreateDate": "2022-08-17T04:06:39+03:00",
      "Laboriousness": 4,
      "ExpiredTimeLeft": 5,
      "IsExpiredFactTimeExecution": true,
      "RequiredStartDate": "2022-08-17T04:06:39+03:00",
      "CustomFields": [
        {
          "CustomFieldId": 1,
          "ValueId": 1,
          "Value": "sample string 2"
        },
        {
          "CustomFieldId": 1,
          "ValueId": 1,
          "Value": "sample string 2"
        }
      ],
      "SubRequests": [
        1,
        2
      ]
    }
  ]
}

text/html, multipart/form-data

Sample:
{"Total":1,"Page":2,"PageSize":3,"Requests":[{"LastModifiedDate":"2022-08-17T04:06:39+03:00","Id":1,"Status":0,"Department":{"Id":1,"Name":"sample string 2","IsActual":true,"Editable":true,"DateCreated":"2022-08-17T04:06:39+03:00"},"Category":{"Id":1,"DepartmentId":2,"Name":"sample string 3","IsActual":true,"Editable":true,"DateCreated":"2022-08-17T04:06:39+03:00"},"RequestType":{"Id":1,"CategoryId":2,"Name":"sample string 3","IsActual":true,"Editable":true,"DateCreated":"2022-08-17T04:06:39+03:00"},"JobType":{"Id":1,"RequestTypeId":2,"Name":"sample string 3","IsActual":true,"Editable":true,"DateCreated":"2022-08-17T04:06:39+03:00"},"Description":"sample string 2","Initiator":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"Contractor":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"Region":{"Id":1,"Code":"sample string 2","Name":"sample string 3"},"CreateDate":"2022-08-17T04:06:39+03:00","Laboriousness":4,"ExpiredTimeLeft":5,"IsExpiredFactTimeExecution":true,"RequiredStartDate":"2022-08-17T04:06:39+03:00","CustomFields":[{"CustomFieldId":1,"ValueId":1,"Value":"sample string 2"},{"CustomFieldId":1,"ValueId":1,"Value":"sample string 2"}],"SubRequests":[1,2]},{"LastModifiedDate":"2022-08-17T04:06:39+03:00","Id":1,"Status":0,"Department":{"Id":1,"Name":"sample string 2","IsActual":true,"Editable":true,"DateCreated":"2022-08-17T04:06:39+03:00"},"Category":{"Id":1,"DepartmentId":2,"Name":"sample string 3","IsActual":true,"Editable":true,"DateCreated":"2022-08-17T04:06:39+03:00"},"RequestType":{"Id":1,"CategoryId":2,"Name":"sample string 3","IsActual":true,"Editable":true,"DateCreated":"2022-08-17T04:06:39+03:00"},"JobType":{"Id":1,"RequestTypeId":2,"Name":"sample string 3","IsActual":true,"Editable":true,"DateCreated":"2022-08-17T04:06:39+03:00"},"Description":"sample string 2","Initiator":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"Contractor":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"Region":{"Id":1,"Code":"sample string 2","Name":"sample string 3"},"CreateDate":"2022-08-17T04:06:39+03:00","Laboriousness":4,"ExpiredTimeLeft":5,"IsExpiredFactTimeExecution":true,"RequiredStartDate":"2022-08-17T04:06:39+03:00","CustomFields":[{"CustomFieldId":1,"ValueId":1,"Value":"sample string 2"},{"CustomFieldId":1,"ValueId":1,"Value":"sample string 2"}],"SubRequests":[1,2]}]}

application/xml, text/xml

Sample:
<RequestListViewModelOfRequestBasicViewModel0vtaC1pF 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>
    <RequestBasicViewModel>
      <Category xmlns:d4p1="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.WorkNormative">
        <d4p1:DateCreated>2022-08-17T04:06:39.0439975+03:00</d4p1:DateCreated>
        <d4p1:DepartmentId>2</d4p1:DepartmentId>
        <d4p1:Editable>true</d4p1:Editable>
        <d4p1:Id>1</d4p1:Id>
        <d4p1:IsActual>true</d4p1:IsActual>
        <d4p1:Name>sample string 3</d4p1:Name>
      </Category>
      <Contractor xmlns:d4p1="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.Users">
        <d4p1:Appoint>sample string 6</d4p1:Appoint>
        <d4p1:FirstName>sample string 3</d4p1:FirstName>
        <d4p1:Id>1</d4p1:Id>
        <d4p1:LastName>sample string 4</d4p1:LastName>
        <d4p1:Login>sample string 2</d4p1:Login>
        <d4p1:Organization>sample string 7</d4p1:Organization>
        <d4p1:RegionId>5</d4p1:RegionId>
      </Contractor>
      <CreateDate>2022-08-17T04:06:39.0439975+03:00</CreateDate>
      <CustomFields>
        <RequestCustomFieldViewModel>
          <CustomFieldId>1</CustomFieldId>
          <Value>sample string 2</Value>
          <ValueId>1</ValueId>
        </RequestCustomFieldViewModel>
        <RequestCustomFieldViewModel>
          <CustomFieldId>1</CustomFieldId>
          <Value>sample string 2</Value>
          <ValueId>1</ValueId>
        </RequestCustomFieldViewModel>
      </CustomFields>
      <Department xmlns:d4p1="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.WorkNormative">
        <d4p1:DateCreated>2022-08-17T04:06:39.0439975+03:00</d4p1:DateCreated>
        <d4p1:Editable>true</d4p1:Editable>
        <d4p1:Id>1</d4p1:Id>
        <d4p1:IsActual>true</d4p1:IsActual>
        <d4p1:Name>sample string 2</d4p1:Name>
      </Department>
      <Description>sample string 2</Description>
      <ExpiredTimeLeft>5</ExpiredTimeLeft>
      <Id>1</Id>
      <Initiator xmlns:d4p1="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.Users">
        <d4p1:Appoint>sample string 6</d4p1:Appoint>
        <d4p1:FirstName>sample string 3</d4p1:FirstName>
        <d4p1:Id>1</d4p1:Id>
        <d4p1:LastName>sample string 4</d4p1:LastName>
        <d4p1:Login>sample string 2</d4p1:Login>
        <d4p1:Organization>sample string 7</d4p1:Organization>
        <d4p1:RegionId>5</d4p1:RegionId>
      </Initiator>
      <IsExpiredFactTimeExecution>true</IsExpiredFactTimeExecution>
      <JobType xmlns:d4p1="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.WorkNormative">
        <d4p1:DateCreated>2022-08-17T04:06:39.0439975+03:00</d4p1:DateCreated>
        <d4p1:Editable>true</d4p1:Editable>
        <d4p1:Id>1</d4p1:Id>
        <d4p1:IsActual>true</d4p1:IsActual>
        <d4p1:Name>sample string 3</d4p1:Name>
        <d4p1:RequestTypeId>2</d4p1:RequestTypeId>
      </JobType>
      <Laboriousness>4</Laboriousness>
      <LastModifiedDate>2022-08-17T04:06:39.0439975+03:00</LastModifiedDate>
      <Region xmlns:d4p1="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.Directory">
        <d4p1:Code>sample string 2</d4p1:Code>
        <d4p1:Id>1</d4p1:Id>
        <d4p1:Name>sample string 3</d4p1:Name>
      </Region>
      <RequestType xmlns:d4p1="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.WorkNormative">
        <d4p1:CategoryId>2</d4p1:CategoryId>
        <d4p1:DateCreated>2022-08-17T04:06:39.0439975+03:00</d4p1:DateCreated>
        <d4p1:Editable>true</d4p1:Editable>
        <d4p1:Id>1</d4p1:Id>
        <d4p1:IsActual>true</d4p1:IsActual>
        <d4p1:Name>sample string 3</d4p1:Name>
      </RequestType>
      <RequiredStartDate>2022-08-17T04:06:39.0439975+03:00</RequiredStartDate>
      <Status>None</Status>
      <SubRequests xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </SubRequests>
    </RequestBasicViewModel>
    <RequestBasicViewModel>
      <Category xmlns:d4p1="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.WorkNormative">
        <d4p1:DateCreated>2022-08-17T04:06:39.0439975+03:00</d4p1:DateCreated>
        <d4p1:DepartmentId>2</d4p1:DepartmentId>
        <d4p1:Editable>true</d4p1:Editable>
        <d4p1:Id>1</d4p1:Id>
        <d4p1:IsActual>true</d4p1:IsActual>
        <d4p1:Name>sample string 3</d4p1:Name>
      </Category>
      <Contractor xmlns:d4p1="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.Users">
        <d4p1:Appoint>sample string 6</d4p1:Appoint>
        <d4p1:FirstName>sample string 3</d4p1:FirstName>
        <d4p1:Id>1</d4p1:Id>
        <d4p1:LastName>sample string 4</d4p1:LastName>
        <d4p1:Login>sample string 2</d4p1:Login>
        <d4p1:Organization>sample string 7</d4p1:Organization>
        <d4p1:RegionId>5</d4p1:RegionId>
      </Contractor>
      <CreateDate>2022-08-17T04:06:39.0439975+03:00</CreateDate>
      <CustomFields>
        <RequestCustomFieldViewModel>
          <CustomFieldId>1</CustomFieldId>
          <Value>sample string 2</Value>
          <ValueId>1</ValueId>
        </RequestCustomFieldViewModel>
        <RequestCustomFieldViewModel>
          <CustomFieldId>1</CustomFieldId>
          <Value>sample string 2</Value>
          <ValueId>1</ValueId>
        </RequestCustomFieldViewModel>
      </CustomFields>
      <Department xmlns:d4p1="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.WorkNormative">
        <d4p1:DateCreated>2022-08-17T04:06:39.0439975+03:00</d4p1:DateCreated>
        <d4p1:Editable>true</d4p1:Editable>
        <d4p1:Id>1</d4p1:Id>
        <d4p1:IsActual>true</d4p1:IsActual>
        <d4p1:Name>sample string 2</d4p1:Name>
      </Department>
      <Description>sample string 2</Description>
      <ExpiredTimeLeft>5</ExpiredTimeLeft>
      <Id>1</Id>
      <Initiator xmlns:d4p1="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.Users">
        <d4p1:Appoint>sample string 6</d4p1:Appoint>
        <d4p1:FirstName>sample string 3</d4p1:FirstName>
        <d4p1:Id>1</d4p1:Id>
        <d4p1:LastName>sample string 4</d4p1:LastName>
        <d4p1:Login>sample string 2</d4p1:Login>
        <d4p1:Organization>sample string 7</d4p1:Organization>
        <d4p1:RegionId>5</d4p1:RegionId>
      </Initiator>
      <IsExpiredFactTimeExecution>true</IsExpiredFactTimeExecution>
      <JobType xmlns:d4p1="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.WorkNormative">
        <d4p1:DateCreated>2022-08-17T04:06:39.0439975+03:00</d4p1:DateCreated>
        <d4p1:Editable>true</d4p1:Editable>
        <d4p1:Id>1</d4p1:Id>
        <d4p1:IsActual>true</d4p1:IsActual>
        <d4p1:Name>sample string 3</d4p1:Name>
        <d4p1:RequestTypeId>2</d4p1:RequestTypeId>
      </JobType>
      <Laboriousness>4</Laboriousness>
      <LastModifiedDate>2022-08-17T04:06:39.0439975+03:00</LastModifiedDate>
      <Region xmlns:d4p1="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.Directory">
        <d4p1:Code>sample string 2</d4p1:Code>
        <d4p1:Id>1</d4p1:Id>
        <d4p1:Name>sample string 3</d4p1:Name>
      </Region>
      <RequestType xmlns:d4p1="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.WorkNormative">
        <d4p1:CategoryId>2</d4p1:CategoryId>
        <d4p1:DateCreated>2022-08-17T04:06:39.0439975+03:00</d4p1:DateCreated>
        <d4p1:Editable>true</d4p1:Editable>
        <d4p1:Id>1</d4p1:Id>
        <d4p1:IsActual>true</d4p1:IsActual>
        <d4p1:Name>sample string 3</d4p1:Name>
      </RequestType>
      <RequiredStartDate>2022-08-17T04:06:39.0439975+03:00</RequiredStartDate>
      <Status>None</Status>
      <SubRequests xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </SubRequests>
    </RequestBasicViewModel>
  </Requests>
  <Total>1</Total>
</RequestListViewModelOfRequestBasicViewModel0vtaC1pF>