hngprojects / hng_boilerplate_csharp_web

https://api-csharp.boilerplate.hng.tech
Apache License 2.0
79 stars 41 forks source link

[FEAT]: NewsLetter Page Api Endpoint - BACKEND #10

Closed Godhanded closed 1 month ago

Godhanded commented 1 month ago

Description

Develop a backend endpoint to handle requests for newsletter subscriptions. The endpoint will accept an email address, validate and sanitize it, and then handle both successful and failed validations appropriately. If the email passes validation, it will be stored in the database and a 'success' response will be sent to the client. If validation fails, an error message will be returned.

Acceptance Criteria

Error response

 {
     "message": "string",
     "success": false,
     "status_code": int
 }

Database design

schema

Table name: subscribers_table

id:

Godhanded commented 1 month ago

This Issue Links To The Approved Issue Here