Convenience class to initialize the OpenAPI config for @solace-labs/ep-openapi-node.

Hierarchy

  • EpSdkClient

Constructors

Properties

DEFAULT_EP_API_BASE_URL: "https://api.solace.cloud" = "https://api.solace.cloud"
token: string

Methods

  • Initialize the EP OpenAPI global constant.

    Returns

    OpenAPIConfig

    Example

    import { OpenAPI } from "@solace-labs/ep-openapi-node";

    EpSdkClient.initialize({
    globalOpenAPI: OpenAPI,
    token: 'my token'
    });

    Parameters

    • params: {
          baseUrl?: string;
          globalEpOpenAPI: OpenAPIConfig;
          globalEpRtOpenAPI: OpenAPIConfig;
          token: string;
      }
      • Optional baseUrl?: string

        Base url for the ep api.

        Default Value

        DEFAULT_EP_API_BASE_URL

      • globalEpOpenAPI: OpenAPIConfig

        The global OpenAPI const object from @solace-labs/ep-openapi-node.

      • globalEpRtOpenAPI: OpenAPIConfig

        The global OpenAPI const object from @solace-labs/ep-rt-openapi-node.

      • token: string

        The Solace Cloud token.

    Returns {
        EpOpenAPIConfig: OpenAPIConfig;
        EpRtOpenAPIConfig: OpenAPIConfig;
    }