User Manual

User Guide for Adding a Data Source with OData

24/9/26
User Guide for Adding a Data Source with OData

OData API

The OData API is one of the external data sources you can use on the Kuika platform. You can integrate an existing OData service into the application you’re developing on Kuika as a data source. In this tutorial, you’ll learn how to add a data source to your application using the OData API.

‍

Add a Data Source Connection to Your Application Using OData API

  1. Log in to the Kuika platform and open the project you’ll be working on from the Apps screen.
  2. Open the Datasources module from the top menu. In this module, you can view the data sources and actions in your app under the Recently modified and Data sources tabs, search using the Search by name field, and add a new data source.
  3. Click the Create an API card at the top of the screen. This card allows you to create Swagger, REST, OData, SAP, and MQTT broker connections.
  4. In the list that opens, select the OData (Open Data Protocol) option under the APIs & Services heading. You can use the ↑/↓ keys to navigate the list and the Enter key to make a selection.
  1. Enter a name for your data source in the Name field (e.g., userguideodata).
  2. Click the CREATE button to complete the process. To cancel the operation, click the CANCEL button; to return to the connection type selection, click the < OData link.

Note: You can also start the process of adding a new data source by clicking the + icon next to the Sources heading in the left panel.

Anatomy of the OData API Modal

A. Top Menu

  • Back Button (←): Takes you back to the Datasources screen.
  • Data Source Name: Displays the name of the OData data source you created (e.g., userguideodata). Use the dropdown arrow next to it to switch between data sources, and the pencil icon to edit the name.
  • CREATE Button: Saves the connection settings and closes the screen.

B. 01 Endpoint

Contains the service information that Kuika will connect to.

You can view descriptions of the fields by hovering over the (i) icons next to them.

C. 02 Authentication

Determines how Kuika will authenticate itself with the service.

  • Authentication type: This field allows you to select the authentication type for API access. Options include No Auth, Bearer, Basic, and API Key.
  • Header Table: Consists of the Type, Key, and Value columns. The necessary rows are automatically added to the table based on the selected authentication type. Custom-type rows allow you to define optional additional fields.

D. Right Panel

  • Description: This is where you can add notes about the data source.
  • Learn More: You can access the relevant documentation via the OData user guide link.
  • After You Create: Indicates that clicking the CREATE button saves the connection and closes this screen.

Configuring OData API Connection Settings

  1. In the Endpoint section, enter the Metadata URL and Service base URL information.
  2. In the Authentication section, select the authentication type from the Authentication type field and fill in the relevant fields.
  3. If necessary, add Custom rows to the header table.
  4. If you wish, enter a note about the data source in the Description field.
  5. Click the CREATE button in the upper-right corner to save the settings.

OData API Authentication Types

1. No Auth

Used for services that do not require authentication. No additional configuration is required; if you wish, you can define additional fields using the Custom row in the header table (see odata4.png).

2. Bearer

This is a token-based authentication method. The token is sent in the request header as follows:

Authorization: Bearer YOUR_ACCESS_TOKEN

When Bearer is selected, a row of type Username is automatically added to the header table. The value of this row is fixed as {CurrentUserName} and represents the name of the user logged into the application; you can enter the header name to which this value will be sent in the Key field.

If the token is obtained using a username and password, a “login” process must be performed first, and then the operation must continue using the obtained token.

3. Basic

Authentication is performed using a username and password.

  • Username: Basic auth username.
  • Password: Basic auth password. You can show or hide the password using the eye icon.

When Basic is selected, a row of type Basic Auth., with the Authorization key and the value {BasicAuthToken}, is automatically added to the header table. This row is locked and sends the token generated from the information you entered as follows:

Authorization: Basic base64(username:password)

If you wish, you can add custom parameters using Custom rows.

4. API Key

An API key and, if required, a secret key are used to access the API. This information is typically provided by the API provider.

  • ID key name: The name of the API key (e.g., client_id, api_key, x-api-key).
  • ID: Your unique API key value.
  • Secret key name: The name of the secret key (e.g., client_secret, secret_key).
  • Secret: Your unique secret key value. You can show or hide the value using the eye icon.

If you wish, you can define additional fields using the Custom rows in the header table.

These values are sent as headers or query parameters depending on the API provider:

  • Via header:
    • client_id: YOUR_ID
    • client_secret: YOUR_SECRET
  • As query parameters: https://api.example.com/data?client_id=YOUR_ID&client_secret=YOUR_SECRET

Depending on the API provider’s documentation, these values may have different names. In Kuika, you can complete the integration by defining these values with the correct header names.

By following these steps, you can easily integrate the OData API data source into your Kuika applications.

Glossary

No items found.

Alt Başlıklar