GET api/v2/StoragePointLocations/GetStoragePointLocations?FarmId={FarmId}&StoragePointId={StoragePointId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
FarmId

integer

Required

StoragePointId

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of StoragePointLocationsContract
NameDescriptionTypeAdditional information
LocationId

integer

None.

FarmId

integer

None.

StoragePointId

integer

None.

Preference

boolean

None.

LocationDescription

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "LocationId": 1,
    "FarmId": 2,
    "StoragePointId": 3,
    "Preference": true,
    "LocationDescription": "sample string 5"
  },
  {
    "LocationId": 1,
    "FarmId": 2,
    "StoragePointId": 3,
    "Preference": true,
    "LocationDescription": "sample string 5"
  }
]

application/xml, text/xml

Sample:
<ArrayOfStoragePointLocationsContract xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.agrifoodatsolutions.com/FPService/v2/contracts/2017/01">
  <StoragePointLocationsContract>
    <FarmId>2</FarmId>
    <LocationDescription>sample string 5</LocationDescription>
    <LocationId>1</LocationId>
    <Preference>true</Preference>
    <StoragePointId>3</StoragePointId>
  </StoragePointLocationsContract>
  <StoragePointLocationsContract>
    <FarmId>2</FarmId>
    <LocationDescription>sample string 5</LocationDescription>
    <LocationId>1</LocationId>
    <Preference>true</Preference>
    <StoragePointId>3</StoragePointId>
  </StoragePointLocationsContract>
</ArrayOfStoragePointLocationsContract>