POST api/Farms/PagedList

Request Information

URI Parameters

None.

Body Parameters

FarmRequestModel
NameDescriptionTypeAdditional information
Name

string

None.

OwnerName

string

None.

CountryId

integer

None.

StateId

integer

None.

CityId

integer

None.

TimeZone

string

None.

ShowDeletedItem

boolean

None.

From

date

None.

To

date

None.

CurrentPage

integer

None.

PerPageCount

integer

None.

OrderBy

string

None.

IsAscending

boolean

None.

Keyword

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "OwnerName": "sample string 2",
  "CountryId": 1,
  "StateId": 1,
  "CityId": 1,
  "TimeZone": "sample string 3",
  "ShowDeletedItem": true,
  "From": "2025-12-06T10:23:24.2194753+06:00",
  "To": "2025-12-06T10:23:24.2194753+06:00",
  "CurrentPage": 5,
  "PerPageCount": 6,
  "OrderBy": "sample string 7",
  "IsAscending": true,
  "Keyword": "sample string 9"
}

application/xml, text/xml

Sample:
<FarmRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PoultryManagementAPI.RequestModel">
  <CurrentPage>5</CurrentPage>
  <IsAscending>true</IsAscending>
  <Keyword>sample string 9</Keyword>
  <OrderBy>sample string 7</OrderBy>
  <PerPageCount>6</PerPageCount>
  <CityId>1</CityId>
  <CountryId>1</CountryId>
  <From>2025-12-06T10:23:24.2194753+06:00</From>
  <Name>sample string 1</Name>
  <OwnerName>sample string 2</OwnerName>
  <ShowDeletedItem>true</ShowDeletedItem>
  <StateId>1</StateId>
  <TimeZone>sample string 3</TimeZone>
  <To>2025-12-06T10:23:24.2194753+06:00</To>
</FarmRequestModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.