GEWIS / PDF-generator-client

0 stars 0 forks source link

PDF-server-client

This repository contains the client for the PDF-generator-server. The client is automatically generated using NSwag.

Usage

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(...);