@brakbricks/nest-brickset-api

Brakbricks BricksetAPI for NestJS

A module wrapping @brakbricks/brickset-api for NestJS.

npm i @brakbricks/nest-brickset-api

Register the module.

import { Module } from '@nestjs/common';
import { BricksetApiModule } from '@brakbricks/nest-brickset-api';

@Module({
imports: [
BricksetApiModule.register({ apiKey: 'your-secret-api-key' }),
]
})
export class AppModule {}

inject BricksetApiClient into any service

import { BricksetApiClient } from '@brakbricks/brickset-api';
import { Injectable } from '@nestjs/common';

@Injectable()
export class AppService {
constructor(
private readonly bricksetApi: BricksetApiClient,
) {}
}

Soon

See https://brakbricks.github.io/nest-brickset-api/

https://github.com/brakbricks/nest-brickset-api/issues