POST api/Transporter/gettransporter

Request Information

URI Parameters

None.

Body Parameters

TransporterReceivedDataModels
NameDescriptionTypeAdditional information
create_by

string

None.

mobile_token

string

None.

Request Formats

application/json, text/json

Sample:
{
  "create_by": "sample string 1",
  "mobile_token": "sample string 2"
}

application/xml, text/xml

Sample:
<TransporterReceivedDataModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.TransporterIntegrator.ReceivedDataModels">
  <create_by>sample string 1</create_by>
  <mobile_token>sample string 2</mobile_token>
</TransporterReceivedDataModels>

multipart/form-data

Sample:
<TransporterReceivedDataModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.TransporterIntegrator.ReceivedDataModels"><create_by>sample string 1</create_by><mobile_token>sample string 2</mobile_token></TransporterReceivedDataModels>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

TransporterBaseTreeModels
NameDescriptionTypeAdditional information
message

string

None.

success

boolean

None.

data

Collection of TransporterSentDataModels

None.

Response Formats

application/json, text/json

Sample:
{
  "message": "sample string 1",
  "success": true,
  "data": [
    {
      "transporter_id": "sample string 1",
      "transporter_code": "sample string 2",
      "transporter_desc": "sample string 3",
      "create_by": "sample string 4",
      "mobile_token": "sample string 5"
    },
    {
      "transporter_id": "sample string 1",
      "transporter_code": "sample string 2",
      "transporter_desc": "sample string 3",
      "create_by": "sample string 4",
      "mobile_token": "sample string 5"
    }
  ]
}

application/xml, text/xml

Sample:
<TransporterBaseTreeModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.TransporterIntegrator.BaseTreeModels">
  <data xmlns:d2p1="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.TransporterIntegrator.SentDataModels">
    <d2p1:TransporterSentDataModels>
      <d2p1:create_by>sample string 4</d2p1:create_by>
      <d2p1:mobile_token>sample string 5</d2p1:mobile_token>
      <d2p1:transporter_code>sample string 2</d2p1:transporter_code>
      <d2p1:transporter_desc>sample string 3</d2p1:transporter_desc>
      <d2p1:transporter_id>sample string 1</d2p1:transporter_id>
    </d2p1:TransporterSentDataModels>
    <d2p1:TransporterSentDataModels>
      <d2p1:create_by>sample string 4</d2p1:create_by>
      <d2p1:mobile_token>sample string 5</d2p1:mobile_token>
      <d2p1:transporter_code>sample string 2</d2p1:transporter_code>
      <d2p1:transporter_desc>sample string 3</d2p1:transporter_desc>
      <d2p1:transporter_id>sample string 1</d2p1:transporter_id>
    </d2p1:TransporterSentDataModels>
  </data>
  <message>sample string 1</message>
  <success>true</success>
</TransporterBaseTreeModels>

multipart/form-data

Sample:
<TransporterBaseTreeModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.TransporterIntegrator.BaseTreeModels"><data xmlns:d2p1="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.TransporterIntegrator.SentDataModels"><d2p1:TransporterSentDataModels><d2p1:create_by>sample string 4</d2p1:create_by><d2p1:mobile_token>sample string 5</d2p1:mobile_token><d2p1:transporter_code>sample string 2</d2p1:transporter_code><d2p1:transporter_desc>sample string 3</d2p1:transporter_desc><d2p1:transporter_id>sample string 1</d2p1:transporter_id></d2p1:TransporterSentDataModels><d2p1:TransporterSentDataModels><d2p1:create_by>sample string 4</d2p1:create_by><d2p1:mobile_token>sample string 5</d2p1:mobile_token><d2p1:transporter_code>sample string 2</d2p1:transporter_code><d2p1:transporter_desc>sample string 3</d2p1:transporter_desc><d2p1:transporter_id>sample string 1</d2p1:transporter_id></d2p1:TransporterSentDataModels></data><message>sample string 1</message><success>true</success></TransporterBaseTreeModels>