This repository contains the client for the PDF-generator-server. The client is automatically generated using NSwag.
To use the client, add the following dependency to your package.json
.
{
"dependencies": {
"@pdf/pdf-generator-client": "github:GEWIS/pdf-generator-client"
}
}
Simply import it and make a client to start generating invoices.
import { Client } from '@pdf/pdf-generator-client';
let client = new Client(process.env.BASE_URL);
client.generateInvoice(...);