MyRapidi
MyRapidi

Search our Wiki

Rest API RTI Get RTI

Below you see an example of how to get a list of RTI values. Examples both in JSON and JSONAPI are provided.

NOTE: Remember to substitute the token (after Bearer) and the service id (the "[SERVICE ID]" below) to your own token and service id.

JSON:

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

The out-put for this example would be:

[
  {
    "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
  },
  ...
]

JSONAPI:

Get list of RTIs:

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

The out-put for this example would be:

{
  "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 
      }
    },
    ...
  ]
}