This PR introduces endpoints for managing waitlists, including creating a new waitlist entry, retrieving all waitlist entries, and deleting a waitlist entry by ID.
Features Implemented:
Create Waitlist: Allows users to create a new waitlist entry by providing an email address.
Get All Waitlists: Retrieves all waitlist entries.
Delete Waitlist: Deletes a specific waitlist entry by its ID.
Error Handling: Manages errors for invalid requests, existing entries, and unauthorized access.
Closes #issue_number_here
Changes proposed
Create Waitlist
Endpoint: POST /api/v1/waitlists
Summary: Creates a new waitlist entry with the provided email.
Description
This PR introduces endpoints for managing waitlists, including creating a new waitlist entry, retrieving all waitlist entries, and deleting a waitlist entry by ID.
Features Implemented:
Changes proposed
Request Body:
Successful Response:
Status Code: 201 Created Response:
Error Responses:
Conflict: Status Code: 400 Bad Request Response:
Endpoint: GET /api/v1/waitlists
Summary: Retrieves all waitlist entries.
Successful Response:
Status Code: 200 OK Response:
Error Responses:
Bad Request: Status Code: 400 Bad Request Response:
Bad Request: Status Code: 400 Bad Request Response:
What were you told to do?
What did you do?
Check List (Check all the applicable boxes)
🚨Please review the contribution guideline for this repository.
Screenshots/Videos