This project is a Pdf Report Generator microservice. It is written with Next.js and Typescript. It uses Puppeteer (headless chromium) to generate the PDFs.
Hit the below endpoint with a valid Jwt token. The response will be a PDF binary buffer. Use this buffer to create a PDF file on the client side.
GET <host>/report/cspm/api/:version?token=<jwt-token> # e.g. http://localhost:3000/report/cspm/api/v1?token=<jwt-token>
For local development, Follow the below steps:
.env.example
and rename it to .env
jwt-token
and tenant-id
in the .env
file