open-index/open-npm huggingface dataset:
npm package: @solace-labs/ep-openapi-browser
Description: Solace Event Portal - OpenAPI Client for Browser (Typescript)
Author: Solace Corporation
Latest version: 2.0.5-build.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# OpenAPI Browser Client for Solace Event Portal

Generated Typescript Open API Client for [Solace Event Portal](https://solace.com/products/portal/).

Based on [OpenAPI Typescript Codegen](https://github.com/ferdikoomen/openapi-typescript-codegen).

Version: `0.19.0`

## Install

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

## Usage

Configure OpenAPI object:

```typescript
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:

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

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

---