A certificate generate rest api which takes name and generate certificate with unique id.
To deploy this project run
npm install
npm start
docker build -t cgv2 . --no-cache
docker run -d -p 3000:3000 cgv2
The REST API to the example app is described below.
curl -i -H 'Accept: application/json' http://localhost:3000/generate
body:
{
fullName: string
phoneNo: numbers
email: string
}
{
"status": "success",
"CertificateDetails": {
"fullName": "Sanjay Singh",
"phoneNo": 232455123889213,
"email": "[email protected]",
"_id": "65f88fda0a4a48b12f0d5744",
"createdAt": "2024-03-18T19:02:50.308Z",
"updatedAt": "2024-03-18T19:02:50.308Z",
"__v": 0
},
"file": {
"pdf": {
"fileName": "65f88fda0a4a48b12f0d5744.pdf",
"contentType": "application/pdf",
"data": "QwY7bPSG57izCrys58hjqU9ZvMUOBysX02hBTvny3lfZYia..."
}
}
}
This is free to use license# Contribute
Feel free to contribute