@brakbricks/nest-rebrickable-api

Brakbricks RebrickableAPI for NestJS

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

npm i @brakbricks/nest-rebrickable-api

Register the module.

import { Module } from '@nestjs/common';
import { RebrickableApiModule } from '@brakbricks/nest-rebrickable-api';

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

inject RebrickableApiClient into any service

import { RebrickableApiClient } from '@brakbricks/rebrickable-api';
import { Injectable } from '@nestjs/common';

@Injectable()
export class AppService {
constructor(
private readonly rebrickableApi: RebrickableApiClient,
) {}
}

Soon

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

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