@rackn/digitalrebar-api
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

@rackn/digitalrebar-api

Provides a basic TypeScript API wrapper over RackN Digital Rebar. This API was generated by .

Install

npm i @rackn/digitalrebar-api

Importing

Node:

const DRApi = require('@rackn/digitalrebar-api');

ES6:

import DRApi from '@rackn/digitalrebar-api';

Usage

const drp = new DRApi('my-endpoint');

// authenticate with a token
drp.setToken('my-token');

// or, authenticate with a username and password
drp.setLogin('username', 'password');

// ...

const cluster: DRMachine = { ... };
await drp.clusters.create(cluster);

Readme

Keywords

none

Package Sidebar

Install

npm i @rackn/digitalrebar-api

Weekly Downloads

0

Version

0.0.7

License

APLv2

Unpacked Size

1.56 MB

Total Files

10

Last publish

Collaborators

  • racknisaac
  • racknzander