GET api/MedicationHistories/ByFarmId?Id={Id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of MedicationHistoryListView| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| OwnerId | integer |
None. |
|
| FarmId | integer |
None. |
|
| BatchInfoId | integer |
None. |
|
| Topics | string |
None. |
|
| ReportingAt | date |
None. |
|
| ActiveStatus | boolean |
None. |
|
| CreatedAt | date |
None. |
|
| UpdatedAt | date |
None. |
|
| DeletedAt | date |
None. |
|
| DeletedBy | integer |
None. |
|
| CreatedBy | integer |
None. |
|
| UpdatedBy | integer |
None. |
|
| DeletedStatus | boolean |
None. |
|
| Comment | string |
None. |
|
| FollowupBy | integer |
None. |
|
| DoctorFeedback | integer |
None. |
|
| FarmerFeedback | integer |
None. |
|
| ClossingRequestSent | boolean |
None. |
|
| ClossingRequestReceived | boolean |
None. |
|
| BirdTypeTitle | string |
None. |
|
| FarmName | string |
None. |
|
| LastFeedbackTimeGapSecond | integer |
None. |
|
| LastFeedbackTimeGap | string |
None. |
|
| BatchName | string |
None. |
|
| BatchAge | integer |
None. |
|
| StateId | integer |
None. |
|
| CityId | integer |
None. |
|
| LastFeedbackDate | date |
None. |
|
| LastFeedbackIsDoctor | boolean |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"OwnerId": 2,
"FarmId": 3,
"BatchInfoId": 4,
"Topics": "sample string 5",
"ReportingAt": "2025-12-06T10:23:18.1006966+06:00",
"ActiveStatus": true,
"CreatedAt": "2025-12-06T10:23:18.1006966+06:00",
"UpdatedAt": "2025-12-06T10:23:18.1006966+06:00",
"DeletedAt": "2025-12-06T10:23:18.1006966+06:00",
"DeletedBy": 10,
"CreatedBy": 11,
"UpdatedBy": 12,
"DeletedStatus": true,
"Comment": "sample string 14",
"FollowupBy": 15,
"DoctorFeedback": 16,
"FarmerFeedback": 17,
"ClossingRequestSent": true,
"ClossingRequestReceived": true,
"BirdTypeTitle": "sample string 20",
"FarmName": "sample string 21",
"LastFeedbackTimeGapSecond": 22,
"LastFeedbackTimeGap": "sample string 23",
"BatchName": "sample string 24",
"BatchAge": 25,
"StateId": 26,
"CityId": 27,
"LastFeedbackDate": "2025-12-06T10:23:18.1006966+06:00",
"LastFeedbackIsDoctor": true
},
{
"Id": 1,
"OwnerId": 2,
"FarmId": 3,
"BatchInfoId": 4,
"Topics": "sample string 5",
"ReportingAt": "2025-12-06T10:23:18.1006966+06:00",
"ActiveStatus": true,
"CreatedAt": "2025-12-06T10:23:18.1006966+06:00",
"UpdatedAt": "2025-12-06T10:23:18.1006966+06:00",
"DeletedAt": "2025-12-06T10:23:18.1006966+06:00",
"DeletedBy": 10,
"CreatedBy": 11,
"UpdatedBy": 12,
"DeletedStatus": true,
"Comment": "sample string 14",
"FollowupBy": 15,
"DoctorFeedback": 16,
"FarmerFeedback": 17,
"ClossingRequestSent": true,
"ClossingRequestReceived": true,
"BirdTypeTitle": "sample string 20",
"FarmName": "sample string 21",
"LastFeedbackTimeGapSecond": 22,
"LastFeedbackTimeGap": "sample string 23",
"BatchName": "sample string 24",
"BatchAge": 25,
"StateId": 26,
"CityId": 27,
"LastFeedbackDate": "2025-12-06T10:23:18.1006966+06:00",
"LastFeedbackIsDoctor": true
}
]
application/xml, text/xml
Sample:
<ArrayOfMedicationHistoryListView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PoultryManagementAPI.ViewModels">
<MedicationHistoryListView>
<ActiveStatus>true</ActiveStatus>
<BatchAge>25</BatchAge>
<BatchInfoId>4</BatchInfoId>
<BatchName>sample string 24</BatchName>
<BirdTypeTitle>sample string 20</BirdTypeTitle>
<CityId>27</CityId>
<ClossingRequestReceived>true</ClossingRequestReceived>
<ClossingRequestSent>true</ClossingRequestSent>
<Comment>sample string 14</Comment>
<CreatedAt>2025-12-06T10:23:18.1006966+06:00</CreatedAt>
<CreatedBy>11</CreatedBy>
<DeletedAt>2025-12-06T10:23:18.1006966+06:00</DeletedAt>
<DeletedBy>10</DeletedBy>
<DeletedStatus>true</DeletedStatus>
<DoctorFeedback>16</DoctorFeedback>
<FarmId>3</FarmId>
<FarmName>sample string 21</FarmName>
<FarmerFeedback>17</FarmerFeedback>
<FollowupBy>15</FollowupBy>
<Id>1</Id>
<LastFeedbackDate>2025-12-06T10:23:18.1006966+06:00</LastFeedbackDate>
<LastFeedbackIsDoctor>true</LastFeedbackIsDoctor>
<LastFeedbackTimeGap>sample string 23</LastFeedbackTimeGap>
<LastFeedbackTimeGapSecond>22</LastFeedbackTimeGapSecond>
<OwnerId>2</OwnerId>
<ReportingAt>2025-12-06T10:23:18.1006966+06:00</ReportingAt>
<StateId>26</StateId>
<Topics>sample string 5</Topics>
<UpdatedAt>2025-12-06T10:23:18.1006966+06:00</UpdatedAt>
<UpdatedBy>12</UpdatedBy>
</MedicationHistoryListView>
<MedicationHistoryListView>
<ActiveStatus>true</ActiveStatus>
<BatchAge>25</BatchAge>
<BatchInfoId>4</BatchInfoId>
<BatchName>sample string 24</BatchName>
<BirdTypeTitle>sample string 20</BirdTypeTitle>
<CityId>27</CityId>
<ClossingRequestReceived>true</ClossingRequestReceived>
<ClossingRequestSent>true</ClossingRequestSent>
<Comment>sample string 14</Comment>
<CreatedAt>2025-12-06T10:23:18.1006966+06:00</CreatedAt>
<CreatedBy>11</CreatedBy>
<DeletedAt>2025-12-06T10:23:18.1006966+06:00</DeletedAt>
<DeletedBy>10</DeletedBy>
<DeletedStatus>true</DeletedStatus>
<DoctorFeedback>16</DoctorFeedback>
<FarmId>3</FarmId>
<FarmName>sample string 21</FarmName>
<FarmerFeedback>17</FarmerFeedback>
<FollowupBy>15</FollowupBy>
<Id>1</Id>
<LastFeedbackDate>2025-12-06T10:23:18.1006966+06:00</LastFeedbackDate>
<LastFeedbackIsDoctor>true</LastFeedbackIsDoctor>
<LastFeedbackTimeGap>sample string 23</LastFeedbackTimeGap>
<LastFeedbackTimeGapSecond>22</LastFeedbackTimeGapSecond>
<OwnerId>2</OwnerId>
<ReportingAt>2025-12-06T10:23:18.1006966+06:00</ReportingAt>
<StateId>26</StateId>
<Topics>sample string 5</Topics>
<UpdatedAt>2025-12-06T10:23:18.1006966+06:00</UpdatedAt>
<UpdatedBy>12</UpdatedBy>
</MedicationHistoryListView>
</ArrayOfMedicationHistoryListView>