2.0.5-build.1 • Published 1 year ago

@solace-labs/ep-openapi-browser v2.0.5-build.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

OpenAPI Browser Client for Solace Event Portal

Generated Typescript Open API Client for Solace Event Portal.

Based on OpenAPI Typescript Codegen.

Version: 0.19.0

Install

npm install @solace-labs/ep-openapi-browser

Usage

Configure OpenAPI object:

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

// to use a different base url than specified in the spec:
OpenAPI.BASE = "{base-url}";
OpenAPI.WITH_CREDENTIALS = true;
OpenAPI.CREDENTIALS = "include";
OpenAPI.TOKEN = "{token}";

Example: Create an Application Domain:

import {
  ApplicationDomainResponse,
  ApplicationDomainsService,
} from "@solace-labs/ep-openapi-browser";

const applicationDomainResponse: ApplicationDomainResponse =
  await ApplicationDomainsService.createApplicationDomain({
    requestBody: {
      name: "my-application-domain",
    },
  });