<turbo-stream action="update" target="wiki_3611_3686_subpage_3688_info"><template>
<p>Below you see an example of how to get a list of RTI values. Examples both in JSON and JSONAPI are provided.
<br>
</p><p>NOTE: Remember to substitute the token (after Bearer) and the service id (the "[SERVICE ID]" below) to your own token and service id.</p>
<p></p><h2>JSON:</h2>
<pre class="card">curl 
  -H "Authorization: Bearer [API SECURITY TOKEN]"
  -H "Content-Type: application/json" 
  -H "Accept: application/json"
  -X GET
  https://api.myrapidi.com/api/v2/service/[SERVICE ID]/rtis
</pre>
<p>The out-put for this example would be:</p>
<pre class="card">[
  {
    "id": "3",
    "transfer": "A_NAVSQL_TEST_DATES",
    "source": "NAVSQL001",
    "destination": "NAVSQL002",
    "source_control":-151027
  },
  {
    "id": "4",
    "transfer": "A_NAVSQL_TEST_PERMISSIONS",
    "source": "NAVSQL001",
    "destination": "NAVSQL002",
    "source_control": 151030
  },
  {  
    "id": "5",
    "transfer": "A_NAVSQL_TEST_USERROLE",
    "source": "NAVSQL001",
    "destination": "NAVSQL002",
    "source_control": 151028
  },
  ...
]
</pre>
<p></p><h2>JSONAPI:</h2><h2><p></p>
<p>Get list of RTIs:</p>
<pre class="card">curl 
  -H "Authorization: Bearer [API SECURITY TOKEN]"
  -H "Content-Type: application/vnd.api+json" 
  -H "Accept: application/vnd.api+json"
  -X GET
  https://api.myrapidi.com/api/v2/service/[SERVICE ID]/rtis
</pre>
<p>The out-put for this example would be:</p>
<pre class="card">{
  "data": [
    {
      "id": "3",
      "type":"rtis",
      "attributes":{
        "transfer": "A_NAVSQL_TEST_DATES",
        "source": "NAVSQL001",
        "destination": "NAVSQL002",
        "source_control":-151027 
      }
    },
    {
      "id": "4",
      "type": "rtis",
      "attributes": {
        "transfer": "A_NAVSQL_TEST_PERMISSIONS",
        "source": "NAVSQL001",
        "destination": "NAVSQL002",
        "source_control": 151030 
      }
    },
    {  
      "id": "5",
      "type": "rtis",
      "attributes": {
        "transfer": "A_NAVSQL_TEST_USERROLE",
        "source": "NAVSQL001",
        "destination": "NAVSQL002",
        "source_control": 151028 
      }
    },
    ...
  ]
}
</pre></h2>
</template></turbo-stream>
<turbo-stream action="prepend" target="flash"><template></template></turbo-stream>
