1.5.10 • Published 7 months ago

@datenkraft/bb-control-server-api-ts-client v1.5.10

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
7 months ago

Backbone - Control Server API TS Client

Introduction

The Control Server API TS Client enables you to work with the Control Server API.

Prerequisites

  • npm

Installation

You can use npm to install the package.

npm install @datenkraft/bb-control-server-api-ts-client

Using the package

The package can be used to communicate with the Control Server API. The Client includes functionalities for every endpoint defined in the openapi.json. The Client is auto-generated with ferdikoomen/openapi-typescript-codegen using an openapi.json file.

Initializing the Client

import { ConfigOptions } from '@datenkraft/bb-base-api-ts-client';
import { ControlServerApiClient } from '@datenkraft/bb-control-server-api-ts-client';

const configOptions: ConfigOptions = {
  clientId: 'clientId',
  clientSecret: 'clientSecret',
  oAuthTokenHost: 'oAuthTokenHost',
  tokenTradeInPath: 'tokenTradeInPath',
  externalIdToken: 'externalIdToken',
  useExternalIdToken: true,
};

ControlServerApiClient.init(configOptions).then(() => {
  // Client is initialized
});

Example Endpoint: Get Task Template Collection

ControlServerApiClient.Generated.TaskTemplateService
  .getTaskTemplateCollection()
  .then((taskTemplateCollection) => {
    // Request succeeded
  })
  .catch((error) => {
    // An error occured
  });

License

This repository is available under the MIT license.

1.5.5

8 months ago

1.6.4

9 months ago

1.5.4

8 months ago

1.6.3

9 months ago

1.5.3

9 months ago

1.6.2

10 months ago

1.5.2

10 months ago

1.6.1

1 year ago

1.6.0

1 year ago

1.5.1

1 year ago

1.5.0

1 year ago

1.4.0

1 year ago

1.5.10

7 months ago

1.6.9

7 months ago

1.5.9

7 months ago

1.6.11

7 months ago

1.6.8

8 months ago

1.5.8

7 months ago

1.6.10

7 months ago

1.6.7

8 months ago

1.5.7

7 months ago

1.6.6

8 months ago

1.6.12

7 months ago

1.5.6

8 months ago

1.6.5

9 months ago

1.1.0

2 years ago

1.0.0

3 years ago