didx-xyz / ssi-trust-registry

Trust Registry for Self-Sovereign Identity Ecosystems
Apache License 2.0
6 stars 2 forks source link

feat: submissions api #133

Closed niall-shaw closed 10 months ago

niall-shaw commented 11 months ago

Admin can send a POST request to endpoint /api/invite with payload {"emailAddress":"test@example.com"}. This will generate and store a unique invitation id alongside the emailAddress in mongoDB.

An email will be sent to the address specified using nodemailer package via the SMTP server that can be specified using environment variables.

The user who receives the email can send ONE submission via POST request.

The submission is then stored with the invitationId in mongoDB.

nodemailer: https://github.com/nodemailer/nodemailer

smtp4dev: https://github.com/rnwood/smtp4dev