You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to implement API endpoints to handle user contact submissions via a form. Instead of storing submissions in a database, the submissions will be sent via email to administrators.
Tasks:
Create endpoint - POST /api/contact to handle the contact form submission and send an email to administrators.
Create an email template and connect it to nodemailer for email sending
Implement validation for all required fields (name, email, and message) are provided in the request body.
Create tests for the endpoint to ensure that emails are sent correctly and errors are handled.
Update Swagger API documentation to include the new endpoint and its specifications.
Acceptance Criteria:
The /API/contact POST endpoint must successfully send an email and return the correct status and response based on the request.
The endpoint must validate input fields and return appropriate error messages for missing fields.
Ensure all tests for the endpoint pass, covering both successful and error scenarios.
Update the API documentation to include the new endpoint and its details.
Additional Notes:
Consider implementing rate limiting and spam protection for the contact form endpoint.
Ensure that sensitive information is handled securely and complies with privacy regulations.
The text was updated successfully, but these errors were encountered:
Overview:
We need to implement API endpoints to handle user contact submissions via a form. Instead of storing submissions in a database, the submissions will be sent via email to administrators.
Tasks:
Acceptance Criteria:
Additional Notes:
The text was updated successfully, but these errors were encountered: