Closed legacywebhub closed 2 weeks ago
Create a backend API endpoint to receive and store user information submitted through the waitlist signup form on the website.
The endpoint should be accessible at /api/waitlist.
/api/waitlist
The endpoint should accept POST requests to receive user information.
POST
Given a POST request with user data, the system should validate and sanitize the incoming data.
Validation rules should include:
Given valid user data, the system should securely store the information in the database.
![image]()
Upon successful signup, the system should send a confirmation email to the user.
Return a 429 Too Many Requests status with an appropriate error message if the rate limit is exceeded.
429 Too Many Requests
The system should handle errors gracefully and return appropriate status codes.
Request Body
{ "email": "johndoe@gmail.com", "full_name": "John Doe" }
Error Response
{ "message": "Invalid email format", "status_code": 400, "error": "Bad Request" }
To allow potential users to join a waitlist for our product/service by submitting their information through a form on the website.
A secure and efficient API endpoint that can receive user information, store it in the database and confirm the user's addition to the waitlist.
This issue is linked to the approved issue here
Description
Create a backend API endpoint to receive and store user information submitted through the waitlist signup form on the website.
Acceptance Criteria
The endpoint should be accessible at
/api/waitlist
.The endpoint should accept
POST
requests to receive user information.Given a
POST
request with user data, the system should validate and sanitize the incoming data.Validation rules should include:
Given valid user data, the system should securely store the information in the database.
![image]()
Upon successful signup, the system should send a confirmation email to the user.
Return a
429 Too Many Requests
status with an appropriate error message if the rate limit is exceeded.The system should handle errors gracefully and return appropriate status codes.
Request Body
Error Response
Purpose
To allow potential users to join a waitlist for our product/service by submitting their information through a form on the website.
Requirements
Expected Outcome
A secure and efficient API endpoint that can receive user information, store it in the database and confirm the user's addition to the waitlist.
Testing