-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: Contact Us endpoints Api #163
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #163 +/- ##
===========================================
- Coverage 86.33% 86.26% -0.08%
===========================================
Files 65 67 +2
Lines 1764 1791 +27
Branches 193 196 +3
===========================================
+ Hits 1523 1545 +22
- Misses 214 219 +5
Partials 27 27 ☔ View full report in Codecov by Sentry. |
fe995e5
to
9ab0a9b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It Looks Good for merge!!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Overview
This pull request implements the API endpoints to handle user contact submissions via a form. Instead of storing submissions in a database, the submissions are sent via email to administrators.
Tasks
Create Endpoint:
Implemented POST /api/contact to handle the contact form submission and send an email to administrators.
Email Template and Nodemailer Integration:
Created an email template and integrated it with Nodemailer to send emails.
Validation:
Added validation to ensure all required fields (name, email, and message) are provided in the request body.
Testing:
Created tests for the endpoint to ensure that emails are sent correctly and errors are handled appropriately.
API Documentation:
Updated Swagger API documentation to include the new endpoint and its specifications.
Acceptance Criteria
How to Test
Screenshots