GET api/PurchBaskets
Возвращает Список
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of PurchBasket| Name | Description | Type | Additional 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:28:38.0348605+01:00"
},
{
"BasketId": 1,
"ProdType": 1,
"ProdId": 1,
"UserId": "sample string 2",
"CreationDateTime": "2025-12-12T04:28:38.0348605+01:00"
}
]
application/xml, text/xml
Sample:
<ArrayOfPurchBasket xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SadiApi.Models">
<PurchBasket>
<BasketId>1</BasketId>
<CreationDateTime>2025-12-12T04:28:38.0348605+01:00</CreationDateTime>
<ProdId>1</ProdId>
<ProdType>1</ProdType>
<UserId>sample string 2</UserId>
</PurchBasket>
<PurchBasket>
<BasketId>1</BasketId>
<CreationDateTime>2025-12-12T04:28:38.0348605+01:00</CreationDateTime>
<ProdId>1</ProdId>
<ProdType>1</ProdType>
<UserId>sample string 2</UserId>
</PurchBasket>
</ArrayOfPurchBasket>