GET api/v2/LocationStoragePoints/GetLocationStoragePoints?FarmId={FarmId}&LocationId={LocationId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| FarmId | integer |
Required |
|
| LocationId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of LocationStoragePointsContract| Name | Description | Type | Additional information |
|---|---|---|---|
| StoragePointId | integer |
None. |
|
| FarmId | integer |
None. |
|
| LocationId | integer |
None. |
|
| Preference | boolean |
None. |
|
| StoragePointDescription | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"StoragePointId": 1,
"FarmId": 2,
"LocationId": 3,
"Preference": true,
"StoragePointDescription": "sample string 5"
},
{
"StoragePointId": 1,
"FarmId": 2,
"LocationId": 3,
"Preference": true,
"StoragePointDescription": "sample string 5"
}
]
application/xml, text/xml
Sample:
<ArrayOfLocationStoragePointsContract xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.agrifoodatsolutions.com/FPService/v2/contracts/2017/01">
<LocationStoragePointsContract>
<FarmId>2</FarmId>
<LocationId>3</LocationId>
<Preference>true</Preference>
<StoragePointDescription>sample string 5</StoragePointDescription>
<StoragePointId>1</StoragePointId>
</LocationStoragePointsContract>
<LocationStoragePointsContract>
<FarmId>2</FarmId>
<LocationId>3</LocationId>
<Preference>true</Preference>
<StoragePointDescription>sample string 5</StoragePointDescription>
<StoragePointId>1</StoragePointId>
</LocationStoragePointsContract>
</ArrayOfLocationStoragePointsContract>