POST api/DestinationLocation/getDestinationLocation

Request Information

URI Parameters

None.

Body Parameters

DestinationLocationReceivedDataModels

None.

Request Formats

application/json, text/json

Sample:
{}

application/xml, text/xml, multipart/form-data

Sample:
<DestinationLocationReceivedDataModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.DestinationLocation.ReceivedDataModels" />

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

DestinationLocationBaseTreeModels
NameDescriptionTypeAdditional information
message

string

None.

success

boolean

None.

data

DestinationLocationSentDataModels

None.

Response Formats

application/json, text/json

Sample:
{
  "message": "sample string 1",
  "success": true,
  "data": {
    "location_description": "sample string 1"
  }
}

application/xml, text/xml

Sample:
<DestinationLocationBaseTreeModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.DestinationLocation.BaseTreeModels">
  <data xmlns:d2p1="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.DestinationLocation.SentDataModels">
    <d2p1:location_description>sample string 1</d2p1:location_description>
  </data>
  <message>sample string 1</message>
  <success>true</success>
</DestinationLocationBaseTreeModels>

multipart/form-data

Sample:
<DestinationLocationBaseTreeModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.DestinationLocation.BaseTreeModels"><data xmlns:d2p1="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.DestinationLocation.SentDataModels"><d2p1:location_description>sample string 1</d2p1:location_description></data><message>sample string 1</message><success>true</success></DestinationLocationBaseTreeModels>