Below you see an example on how to list one specific connection. Examples both in JSON and JSONAPI of.
NOTE: Remember to substitute the token (after Bearer) and the service id (the "[SERVICE ID]" below) to your own token and service id.
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]/connections/2
The out-put for this example would be:
{
"id": "2",
"code": "NAV002",
"description": "NAV 2009 native",
"connection_type": "ms_dynamics_nav",
"driver": "nbcnd",
"network_protocol": "",
"server_connect": "ABC-00XX",
"database_path": "",
"account":"Cronus International Ltd.",
"use_windows_authentication": true,
"user_id": "",
"use_codeunits_permissions": null,
"installation_path": "C:\\Program Files\\Microsoft Dynamics NAV\\60\\Classic",
"rapidiconnector": {
"user_id": "NAV002_R",
"password": "xxxxx"
},
"comments": []
}
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]/connections/2
The out-put for this example would be:
{
"data":{
"id": "2",
"type": "connections",
"attributes": {
"code": "NAV002",
"description": "NAV 2009 native",
"connection_type": "ms_dynamics_nav",
"driver": "ndbnd",
"network_protocol": "",
"server_connect": "LAPL-xxxx",
"database_path": "",
"account": "Cronus International Ltd.",
"use_windows_authentication": true,
"user_id": "",
"user_codeunits_permissions": null,
"installation_path": "C:\\Program Files\\Microsoft Dynamics NAV\\60\\Classic"
},
"relationships": {
"rapidiconnector": {
"data": {
"id":"55",
"type": "rapidiconnector"
}
},
"comments": {
"data": []
}
}
},
"included": [
{
"id":"55",
"type": "rapidiconnector",
"attributes": {
"user_id": NAV003_R",
"password": "xxx"
}
}
]
}