hngprojects / hng_boilerplate_nestjs

Description
Apache License 2.0
182 stars 105 forks source link

[FIX][BE JAVA ANCHOR] Create API Endpoint for "Contact Me" Form #961

Open giftexxy opened 3 weeks ago

giftexxy commented 3 weeks ago

Description

Create API endpoint to process and manage form submissions from the "Contact Me" feature, ensuring they are securely stored and/or sent to the appropriate admin contacts.

Acceptance Criteria

The API endpoint must validate the name, email, and message fields.

Data must be securely stored in the database or emailed to the admin.

The system must return appropriate success or error messages.

Error handling must be robust, covering common failure scenarios.

Purpose

To process the data submitted through the contact form so that inquiries can be stored and accessed by the admin.

Requirem#ents

Set up an API endpoint to handle form submissions.

Validate incoming data (name, email, message) on the server side.

Store submissions in the database or forward them to an admin email.

Implement error handling and response messaging.

Ensure data is securely processed and stored.

Expected Outcome

User submissions are correctly validated and processed.

Submissions are stored in the database or sent to the admin's email.

Users receive confirmation of successful submission or appropriate error messages.

theijhay commented 3 weeks ago

Pls assign this to me