API for generating course completion certificates
cd certificado-api
npm i
npm start
Store the template for our certificates. the API will return the templateCode
http -f post localhost:3000/templates file@~/exemplo-certificado.hbs #POST multipart/form-data
Generate our conclusion certificate
http post localhost:3000/certificados name="John Doe" course="Node.js quick start" templateCode=7fa4730e-4013-42eb-a087-587afa0be43d date="01/01/2021" > certificate.pdf #classic POST request with JSON
With this two commands we can generate our certificates