Search…
Documents

Documents Client (Pósthólf)

About

This library implements a client to use Documents APIs

Import into other NestJS modules

Add the service to your module imports:
1
import {
2
DocumentsClientModule,
3
} from '@island.is/clients/documents'
4
5
@Module({
6
imports: [
7
DocumentsClientModule.register({
8
basePath: BASE_PATH,
9
clientId: CLIENT_ID,
10
clientSecret: CLIENT_SECRET,
11
tokenUrl: TOKEN_URL,
12
}),
13
],
14
})
Copied!
Then you'll have access to DocumentClient APIs:
1
import { DocumentClient } from '@island.is/clients/documents'
2
3
@Injectable()
4
export class SomeService {
5
constructor(
6
@Inject(DocumentClient)
7
private readonly documentClient: DocumentClient,
8
) {}
9
10
// ....
11
}
12
}
Copied!

Code owners and maintainers