Ero sivun ”Journeys API” versioiden välillä

652 merkkiä lisätty ,  4. heinäkuuta 2014 kello 03.08
Rivi 39: Rivi 39:
The requestTime parameter can be omitted, in this case requestTime is considered to be the time when the client made the request.
The requestTime parameter can be omitted, in this case requestTime is considered to be the time when the client made the request.


=== Response structure ===
Journeys API response is structured as follows:
<pre>
{
    "headers" : {
        "dataValidityPeriod" : {
            "validFrom" : "2014-05-01",
            "validTo" : "2014-06-30"
        }
    },
    "data" : {
      ...
    }
}
</pre>
The response has headers and data elements. Headers contain metadata-like information about the response. For example dataValidityPeriod tells the time span during which response data is valid. This would reflect the winter and summer example introduced previously. Data element contains the actual response data, and its content varies depending on the request made by the client.
=== Entity Queries ===
=== Entity Queries ===
==== Lines ====
==== Lines ====
0

muokkausta