GET api/v0/StoragePoints/GetFarmStoragePoints/{farmId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| farmId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of StoragePointContract| Name | Description | Type | Additional information |
|---|---|---|---|
| FarmId | integer |
None. |
|
| StoragePointId | integer |
None. |
|
| Description | string |
None. |
|
| Capacity | decimal number |
None. |
|
| IsDisabled | boolean |
None. |
|
| NFCCode | string |
None. |
|
| CurrentArticleCode | string |
None. |
|
| StoragePointExternalID | string |
None. |
|
| FarmExternalID | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"FarmId": 1,
"StoragePointId": 2,
"Description": "sample string 3",
"Capacity": 4.0,
"IsDisabled": true,
"NFCCode": "sample string 6",
"CurrentArticleCode": "sample string 7",
"StoragePointExternalID": "sample string 8",
"FarmExternalID": "sample string 9"
},
{
"FarmId": 1,
"StoragePointId": 2,
"Description": "sample string 3",
"Capacity": 4.0,
"IsDisabled": true,
"NFCCode": "sample string 6",
"CurrentArticleCode": "sample string 7",
"StoragePointExternalID": "sample string 8",
"FarmExternalID": "sample string 9"
}
]
application/xml, text/xml
Sample:
<ArrayOfStoragePointContract xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.agrifoodatsolutions.com/FDService/v0/contracts/2017/01">
<StoragePointContract>
<Capacity>4</Capacity>
<CurrentArticleCode>sample string 7</CurrentArticleCode>
<Description>sample string 3</Description>
<FarmExternalID>sample string 9</FarmExternalID>
<FarmId>1</FarmId>
<IsDisabled>true</IsDisabled>
<NFCCode>sample string 6</NFCCode>
<StoragePointExternalID>sample string 8</StoragePointExternalID>
<StoragePointId>2</StoragePointId>
</StoragePointContract>
<StoragePointContract>
<Capacity>4</Capacity>
<CurrentArticleCode>sample string 7</CurrentArticleCode>
<Description>sample string 3</Description>
<FarmExternalID>sample string 9</FarmExternalID>
<FarmId>1</FarmId>
<IsDisabled>true</IsDisabled>
<NFCCode>sample string 6</NFCCode>
<StoragePointExternalID>sample string 8</StoragePointExternalID>
<StoragePointId>2</StoragePointId>
</StoragePointContract>
</ArrayOfStoragePointContract>