GET api/Common/Find?id={id}

Находит заявки, задачи по Id

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

None.

integer

Required

Body Parameters

None.

Response Information

Success Resource Description

Список найденных документов

Collection of BidViewModel
NameDescriptionTypeAdditional information
Id

Номер элемента (заявка/задача)

integer

None.

Kind

Тип элемента

BidKind

None.

Status

Статус элемента (Для заявки RequestStatus, для задачи TaskStatus)

integer

None.

Initiator

Инициатор

UserNameViewModel

None.

CreateDate

Дата создания элемента

date

None.

Title

Тема

string

None.

Description

Описание

string

None.

IsExpired

Время вышло

boolean

None.

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

OperationResult
NameDescriptionTypeAdditional information
Target

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

Object

None.

Status

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

ResultStatus

None.

Error

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

Error

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Kind": 0,
    "Status": 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"
    },
    "CreateDate": "2022-08-17T05:03:57+03:00",
    "Title": "sample string 4",
    "Description": "sample string 5",
    "IsExpired": true
  },
  {
    "Id": 1,
    "Kind": 0,
    "Status": 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"
    },
    "CreateDate": "2022-08-17T05:03:57+03:00",
    "Title": "sample string 4",
    "Description": "sample string 5",
    "IsExpired": true
  }
]

text/html, multipart/form-data

Sample:
[{"Id":1,"Kind":0,"Status":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"},"CreateDate":"2022-08-17T05:03:57+03:00","Title":"sample string 4","Description":"sample string 5","IsExpired":true},{"Id":1,"Kind":0,"Status":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"},"CreateDate":"2022-08-17T05:03:57+03:00","Title":"sample string 4","Description":"sample string 5","IsExpired":true}]

application/xml, text/xml

Sample:
<ArrayOfBidViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.Common">
  <BidViewModel>
    <CreateDate>2022-08-17T05:03:57.8968952+03:00</CreateDate>
    <Description>sample string 5</Description>
    <Id>1</Id>
    <Initiator xmlns:d3p1="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.Users">
      <d3p1:Appoint>sample string 6</d3p1:Appoint>
      <d3p1:FirstName>sample string 3</d3p1:FirstName>
      <d3p1:Id>1</d3p1:Id>
      <d3p1:LastName>sample string 4</d3p1:LastName>
      <d3p1:Login>sample string 2</d3p1:Login>
      <d3p1:Organization>sample string 7</d3p1:Organization>
      <d3p1:RegionId>5</d3p1:RegionId>
    </Initiator>
    <IsExpired>true</IsExpired>
    <Kind>Request</Kind>
    <Status>2</Status>
    <Title>sample string 4</Title>
  </BidViewModel>
  <BidViewModel>
    <CreateDate>2022-08-17T05:03:57.8968952+03:00</CreateDate>
    <Description>sample string 5</Description>
    <Id>1</Id>
    <Initiator xmlns:d3p1="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.Users">
      <d3p1:Appoint>sample string 6</d3p1:Appoint>
      <d3p1:FirstName>sample string 3</d3p1:FirstName>
      <d3p1:Id>1</d3p1:Id>
      <d3p1:LastName>sample string 4</d3p1:LastName>
      <d3p1:Login>sample string 2</d3p1:Login>
      <d3p1:Organization>sample string 7</d3p1:Organization>
      <d3p1:RegionId>5</d3p1:RegionId>
    </Initiator>
    <IsExpired>true</IsExpired>
    <Kind>Request</Kind>
    <Status>2</Status>
    <Title>sample string 4</Title>
  </BidViewModel>
</ArrayOfBidViewModel>