GET api/FarmHouses/ByFarmId?Id={Id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Id

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of FarmHouseListView
NameDescriptionTypeAdditional information
Id

integer

None.

FarmId

integer

None.

HouseName

string

None.

NumberOfUnit

integer

None.

HouseType

integer

None.

MaxCapacity

integer

None.

CreatedAt

date

None.

UpdatedAt

date

None.

DeletedAt

date

None.

DeletedBy

integer

None.

CreatedBy

integer

None.

UpdatedBy

integer

None.

DeletedStatus

boolean

None.

FarmName

string

None.

HouseTypeName

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "FarmId": 2,
    "HouseName": "sample string 3",
    "NumberOfUnit": 4,
    "HouseType": 5,
    "MaxCapacity": 6,
    "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": 9,
    "CreatedBy": 10,
    "UpdatedBy": 11,
    "DeletedStatus": true,
    "FarmName": "sample string 13",
    "HouseTypeName": "sample string 14"
  },
  {
    "Id": 1,
    "FarmId": 2,
    "HouseName": "sample string 3",
    "NumberOfUnit": 4,
    "HouseType": 5,
    "MaxCapacity": 6,
    "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": 9,
    "CreatedBy": 10,
    "UpdatedBy": 11,
    "DeletedStatus": true,
    "FarmName": "sample string 13",
    "HouseTypeName": "sample string 14"
  }
]

application/xml, text/xml

Sample:
<ArrayOfFarmHouseListView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PoultryManagementAPI.ViewModels">
  <FarmHouseListView>
    <CreatedAt>2025-12-06T10:23:18.1006966+06:00</CreatedAt>
    <CreatedBy>10</CreatedBy>
    <DeletedAt>2025-12-06T10:23:18.1006966+06:00</DeletedAt>
    <DeletedBy>9</DeletedBy>
    <DeletedStatus>true</DeletedStatus>
    <FarmId>2</FarmId>
    <FarmName>sample string 13</FarmName>
    <HouseName>sample string 3</HouseName>
    <HouseType>5</HouseType>
    <HouseTypeName>sample string 14</HouseTypeName>
    <Id>1</Id>
    <MaxCapacity>6</MaxCapacity>
    <NumberOfUnit>4</NumberOfUnit>
    <UpdatedAt>2025-12-06T10:23:18.1006966+06:00</UpdatedAt>
    <UpdatedBy>11</UpdatedBy>
  </FarmHouseListView>
  <FarmHouseListView>
    <CreatedAt>2025-12-06T10:23:18.1006966+06:00</CreatedAt>
    <CreatedBy>10</CreatedBy>
    <DeletedAt>2025-12-06T10:23:18.1006966+06:00</DeletedAt>
    <DeletedBy>9</DeletedBy>
    <DeletedStatus>true</DeletedStatus>
    <FarmId>2</FarmId>
    <FarmName>sample string 13</FarmName>
    <HouseName>sample string 3</HouseName>
    <HouseType>5</HouseType>
    <HouseTypeName>sample string 14</HouseTypeName>
    <Id>1</Id>
    <MaxCapacity>6</MaxCapacity>
    <NumberOfUnit>4</NumberOfUnit>
    <UpdatedAt>2025-12-06T10:23:18.1006966+06:00</UpdatedAt>
    <UpdatedBy>11</UpdatedBy>
  </FarmHouseListView>
</ArrayOfFarmHouseListView>