GET api/v0/Contact/GetContact?farmId={farmId}&contactId={contactId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| farmId | integer |
Required |
|
| contactId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
ContactContract| Name | Description | Type | Additional information |
|---|---|---|---|
| FarmId | integer |
None. |
|
| ContactId | integer |
None. |
|
| Name | string |
None. |
|
| Phone | string |
None. |
|
| Remarks | string |
None. |
|
| ExternalID | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"FarmId": 1,
"ContactId": 2,
"Name": "sample string 3",
"Phone": "sample string 4",
"Remarks": "sample string 5",
"ExternalID": "sample string 6"
}
application/xml, text/xml
Sample:
<ContactContract xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.agrifoodatsolutions.com/FDService/v0/contracts/2017/01"> <ContactId>2</ContactId> <ExternalID>sample string 6</ExternalID> <FarmId>1</FarmId> <Name>sample string 3</Name> <Phone>sample string 4</Phone> <Remarks>sample string 5</Remarks> </ContactContract>