GET api/PurchBaskets/{id}

Поиск избрание по ИД

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

PurchBasket
NameDescriptionTypeAdditional information
BasketId

ИД

integer

None.

ProdType

MaterialType = 1, MachineType = 2, ShippingType = 3, EstimatedType = 4, EsnBuildingType = 5, EsnRepairType = 6, PurchSpecType = 10. Тип продукта: 1-Материалы, 2-Машины и мех., 10-Тендеры(спец.) (необязательно)

integer

None.

ProdId

Код продукта: PurchReqId

integer

None.

UserId

Внешний ключ, связан с таблицей UserProfiles

string

None.

CreationDateTime

Дата и время создания записи

date

None.

Response Formats

application/json, text/json

Sample:
{
  "BasketId": 1,
  "ProdType": 1,
  "ProdId": 1,
  "UserId": "sample string 2",
  "CreationDateTime": "2025-12-12T04:29:46.3017099+01:00"
}

application/xml, text/xml

Sample:
<PurchBasket xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SadiApi.Models">
  <BasketId>1</BasketId>
  <CreationDateTime>2025-12-12T04:29:46.3017099+01:00</CreationDateTime>
  <ProdId>1</ProdId>
  <ProdType>1</ProdType>
  <UserId>sample string 2</UserId>
</PurchBasket>