Ero sivun ”Journeys API” versioiden välillä

Rivi 28: Rivi 28:
Journeys API follows RESTful design pattern. This means that all entities returned by the API have an unique URL via which the entity can be accessed at all times. The returned entities refer to each other via these URLs, and each entity URL is always included in the entity itself as "href" property. Following is a fragment from JOURNEY entity response:
Journeys API follows RESTful design pattern. This means that all entities returned by the API have an unique URL via which the entity can be accessed at all times. The returned entities refer to each other via these URLs, and each entity URL is always included in the entity itself as "href" property. Following is a fragment from JOURNEY entity response:
<pre>
<pre>
...
     "data" : {
     "data" : {
         "href" : "http://example.com/journeys/api/journeys/111",
         "href" : "http://example.com/journeys/api/journeys/111",