POST v6/api_1076_optiyolController/RouteStarted

Request Information

URI Parameters

None.

Body Parameters

OptiyolCommandOfRouteStartedModel
NameDescriptionTypeAdditional information
hook

Hook

None.

data

RouteStartedModel

None.

Request Formats

application/json, text/json

Sample:
{
  "hook": {
    "Id": 1,
    "Event": "sample string 2",
    "Target": "sample string 3"
  },
  "data": {
    "route_tracker_code": "sample string 1",
    "vehicle_code": "sample string 2",
    "start_time": "sample string 3",
    "number_of_stops": 4,
    "number_of_orders": 5,
    "lat": 6.1,
    "lon": 7.1,
    "orders": [
      {
        "order_id": "sample string 1",
        "is_loaded": "sample string 2",
        "track_url": "sample string 3"
      },
      {
        "order_id": "sample string 1",
        "is_loaded": "sample string 2",
        "track_url": "sample string 3"
      }
    ]
  }
}

application/xml, text/xml

Sample:
<OptiyolCommandOfRouteStartedModel0jFI3D0e xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/V6.models.Entegrasyon.Operasyonlar.Optiyol">
  <data>
    <lat>6.1</lat>
    <lon>7.1</lon>
    <number_of_orders>5</number_of_orders>
    <number_of_stops>4</number_of_stops>
    <orders>
      <Order>
        <is_loaded>sample string 2</is_loaded>
        <order_id>sample string 1</order_id>
        <track_url>sample string 3</track_url>
      </Order>
      <Order>
        <is_loaded>sample string 2</is_loaded>
        <order_id>sample string 1</order_id>
        <track_url>sample string 3</track_url>
      </Order>
    </orders>
    <route_tracker_code>sample string 1</route_tracker_code>
    <start_time>sample string 3</start_time>
    <vehicle_code>sample string 2</vehicle_code>
  </data>
  <hook>
    <Event>sample string 2</Event>
    <Id>1</Id>
    <Target>sample string 3</Target>
  </hook>
</OptiyolCommandOfRouteStartedModel0jFI3D0e>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'OptiyolCommand`1'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.