hngprojects / hng_boilerplate_php_laravel_web

Apache License 2.0
148 stars 58 forks source link

[FEAT]: Waitlist API - BACKEND #2

Closed legacywebhub closed 2 weeks ago

legacywebhub commented 1 month ago

Description

Create a backend API endpoint to receive and store user information submitted through the waitlist signup form on the website.

Acceptance Criteria

Request Body

{
  "email": "johndoe@gmail.com",
  "full_name": "John Doe"
}

Error Response

{
  "message": "Invalid email format",
  "status_code": 400,
  "error": "Bad Request"
}

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

legacywebhub commented 1 month ago

This issue is linked to the approved issue here