Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Karenyan/mailing list backend route #33

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

PoliteUnicorn
Copy link

Tracking Info

Resolves #10

Changes

I created the mongoose schema for a subscription and I implemented the POST, GET, and DELETE routes for the subscriptions.

Testing

I tested on valid names + emails to check that they could be added and deleted properly. I also check that invalid subscriptions could not be added or deleted (valid names + invalid emails, invalid names + valid emails). I'm not sure if when an invalid email is deleted what error it should throw, so right now it is set at 200.

Confirmation of Change

PUT valid name & email
Add_Valid_Name_Email

PUT invalid name & valid email
Create_Invalid_Name_Valid_Email

PUT valid name & invalid email
Create_Valid_Name_Invalid_Email

DELETE Valid name & email
Delete_Valid_Name_Email

DELETE valid name & invalid email
Delete_Invalid_Email

GET All
Get_All

@PoliteUnicorn PoliteUnicorn requested a review from mraysu as a code owner January 23, 2025 02:49
@mraysu mraysu requested a review from kilehsu January 23, 2025 21:51
Copy link
Collaborator

@mraysu mraysu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🎉

Copy link

@kilehsu kilehsu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[MISC] Mailing List Backend Route
3 participants