Creating a Data Connector

Creating a Data Connector

The operation for creating Data Connectors through the Backend Services RESTFul API allows you to connect to your existing data stores programmatically.

You can create Data Connectors to the following types of data:

After defining a Data Connector in your Telerik Platform app, you can define content types that expose data from the remote data store.

Relational Databases

The following example shows how to create a data connector to a relational database. The list of properties that you need to include in the body is presented in Data Connectors Object Fields Reference.

Request:
    POST https://api.everlive.com/v1/Metadata/Applications/your-app-id/DataLinks
Headers:
    Content-Type: application/json
    Authorization: Masterkey your-master-key-here
Body:
    {
        "Name": "MyDb",
        "Type": 1,
        "Url": "https://datalinkserver.com:9090",
        "ConnectionString": "Server=myServerAddress;Database=myDB;User=myUsername;Password=myPassword;"
    }

Response:
    Status: 201 Created
    Content-Type: application/json
Body:
    {
        "Result":
            {
                "Id": "30bfdc11-dbcf-49f7-928e-eb08aa5a2c50",
                "CreatedAt": "2014-04-25T11:58:52.506Z"
            }
    }

Creation of multiple Data Connectors simultaneously is not supported.

Salesforce

The following example shows how to create a data connector to Salesforce. The list of properties that you need to include in the body is presented in Data Connectors Object Fields Reference.

Request:
    POST https://api.everlive.com/v1/Metadata/Applications/your-app-id/DataLinks
Headers:
    Content-Type: application/json
    Authorization: Masterkey your-master-key-here
Body:
    {
        "Name": "MySalesforce",
        "ConnectionString": "login.salesforce.com",
        "Type": 5,
        "Username": "adminroleuser@example.com",
        "Password": "d@tal1nk",
        "Token": "Djre3kSuEmdWE9s2"
    }
Response:
    Status: 201 Created
    Content-Type: application/json
Body:
    {
        "Result":
            {
                "Id": "30bfdc11-dbcf-49f7-928e-eb08aa5a2c50",
                "CreatedAt": "2014-04-25T11:58:52.506Z"
            }
    }

Creation of multiple Data Connectors simultaneously is not supported.

See Also

Start a free trial Request a demo
Contact us: +1-888-365-2779
sales@telerik.com
Copyright © 2016-2017, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.