Developing Against the SDK API (Beta)
This topic describes how to enable integration mode for the Replicated SDK to develop and test changes locally. For more information about the SDK API, see Replicated SDK API (Beta).
About Integration Mode
You can use the Replicated SDK in integration mode to develop locally against the SDK API without needing to make real changes in the Replicated Vendor Portal or in your environment.
To use integration mode, install the Replicated SDK as a standalone component using a valid development license created in the Replicated Vendor Portal. After you install in integration mode, the SDK provides default mock data for requests to the SDK API app
endpoints. Requests to the license
endpoints use the real data from your development license.
To use the Replicated SDK in integration mode, complete the following procedures:
Create a Development License
To use integration mode, you first need to create a development license that you can use to install the SDK. When you create the development license, you can add values to any license fields that you want to use in testing.
For information about development licenses, see License Types in About Licenses.
To create a development license:
-
In the Vendor Portal, go to Customers and click Create customer.
-
Complete the following fields:
-
For Customer name, add a name for the customer.
-
For Assigned channel, assign the customer to the channel that you use for testing. For example, Unstable.
-
For Customer type, select Development.
-
For Customer email, add the email address that you want to use for the license.
-
-
(Optional) Add any license field values that you want to use for testing:
-
For Expiration policy, you can add an expiration date for the license.
-
For Custom fields, you can add values for any custom license fields in your application. For information about how to create custom license fields, see Managing Custom License Fields.
-
-
Click Save Changes.
Install the SDK in Integration Mode
To develop against the SDK locally in your development environment, install the SDK in integration mode as a standalone component in your cluster.
To install the SDK in integration mode:
-
On the Manage customer page for the customer you created, click Helm install instructions.
-
In the Helm install instructions dialog, copy and run the command to log in to the Replicated registry.
-
From the same dialog, copy and run the command to install the SDK in integration mode:
-
Make requests to the SDK API from your application. Requests to the
license
endpoints use your actual development license data, while requests to theapp
endpoints use the default mock data. For more information about using the SDK API, see Replicated SDK API (Beta).