@takaro/apiclient
v0.0.15
Published
API client for Takaro
Downloads
368
Readme
@takaro/apiclient
Automatically generated API client for Takaro.
Usage
import { AdminClient, Client } from '@takaro/apiclient';
const url = 'http://localhost:13000';
const adminClient = new AdminClient({
url,
auth: {
clientSecret: config.get('adminClientSecret'),
},
});
const createdDomain = await this.adminClient.domain.domainControllerCreate({
name: 'test-domain',
});
const client = new Client({
url,
auth: {
username: createdDomain.data.data.rootUser.email,
password: createdDomain.data.data.password,
},
});
await client.login();