GET api/BatchInfoes/LocationListByFarmId?farmId={farmId}&phaseTypeId={phaseTypeId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
farmId

integer

Required

phaseTypeId

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of ViewBatchLocationListItem
NameDescriptionTypeAdditional information
Id

integer

None.

FarmId

integer

None.

LocationName

string

None.

TypeSystemName

string

None.

BatchPhaseTypeId

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "FarmId": 2,
    "LocationName": "sample string 3",
    "TypeSystemName": "sample string 4",
    "BatchPhaseTypeId": 1
  },
  {
    "Id": 1,
    "FarmId": 2,
    "LocationName": "sample string 3",
    "TypeSystemName": "sample string 4",
    "BatchPhaseTypeId": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfViewBatchLocationListItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PoultryManagementAPI.ViewModels">
  <ViewBatchLocationListItem>
    <BatchPhaseTypeId>1</BatchPhaseTypeId>
    <FarmId>2</FarmId>
    <Id>1</Id>
    <LocationName>sample string 3</LocationName>
    <TypeSystemName>sample string 4</TypeSystemName>
  </ViewBatchLocationListItem>
  <ViewBatchLocationListItem>
    <BatchPhaseTypeId>1</BatchPhaseTypeId>
    <FarmId>2</FarmId>
    <Id>1</Id>
    <LocationName>sample string 3</LocationName>
    <TypeSystemName>sample string 4</TypeSystemName>
  </ViewBatchLocationListItem>
</ArrayOfViewBatchLocationListItem>