GET api/MedicineBuyHistories/Dashboard?farmId={farmId}&farmType={farmType}&languageCode={languageCode}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| farmId | integer |
Required |
|
| farmType | integer |
Default value is 0 |
|
| languageCode | string |
Default value is en |
Body Parameters
None.
Response Information
Resource Description
Collection of ReportBuyDashboard| Name | Description | Type | Additional information |
|---|---|---|---|
| RelatedId | integer |
None. |
|
| FarmId | integer |
None. |
|
| ItemTitle | string |
None. |
|
| ItemTypeId | integer |
None. |
|
| ItemTypeTitle | string |
None. |
|
| CurrentAge | integer |
None. |
|
| TotalQuantity | decimal number |
None. |
|
| UsableQuantity | decimal number |
None. |
|
| DateAt | date |
None. |
|
| IconPath | string |
None. |
|
| StockType | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"RelatedId": 1,
"FarmId": 2,
"ItemTitle": "sample string 3",
"ItemTypeId": 4,
"ItemTypeTitle": "sample string 5",
"CurrentAge": 6,
"TotalQuantity": 7.0,
"UsableQuantity": 8.0,
"DateAt": "2025-12-06T10:23:19.3989265+06:00",
"IconPath": "sample string 10",
"StockType": "sample string 11"
},
{
"RelatedId": 1,
"FarmId": 2,
"ItemTitle": "sample string 3",
"ItemTypeId": 4,
"ItemTypeTitle": "sample string 5",
"CurrentAge": 6,
"TotalQuantity": 7.0,
"UsableQuantity": 8.0,
"DateAt": "2025-12-06T10:23:19.3989265+06:00",
"IconPath": "sample string 10",
"StockType": "sample string 11"
}
]
application/xml, text/xml
Sample:
<ArrayOfReportBuyDashboard xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PoultryManagementAPI.ViewModels">
<ReportBuyDashboard>
<CurrentAge>6</CurrentAge>
<DateAt>2025-12-06T10:23:19.3989265+06:00</DateAt>
<FarmId>2</FarmId>
<IconPath>sample string 10</IconPath>
<ItemTitle>sample string 3</ItemTitle>
<ItemTypeId>4</ItemTypeId>
<ItemTypeTitle>sample string 5</ItemTypeTitle>
<RelatedId>1</RelatedId>
<StockType>sample string 11</StockType>
<TotalQuantity>7</TotalQuantity>
<UsableQuantity>8</UsableQuantity>
</ReportBuyDashboard>
<ReportBuyDashboard>
<CurrentAge>6</CurrentAge>
<DateAt>2025-12-06T10:23:19.3989265+06:00</DateAt>
<FarmId>2</FarmId>
<IconPath>sample string 10</IconPath>
<ItemTitle>sample string 3</ItemTitle>
<ItemTypeId>4</ItemTypeId>
<ItemTypeTitle>sample string 5</ItemTypeTitle>
<RelatedId>1</RelatedId>
<StockType>sample string 11</StockType>
<TotalQuantity>7</TotalQuantity>
<UsableQuantity>8</UsableQuantity>
</ReportBuyDashboard>
</ArrayOfReportBuyDashboard>