hngprojects / hng_boilerplate_python_fastapi_web

Apache License 2.0
154 stars 137 forks source link

[FEAT] Retrieve all Contact us Messages #282

Open jubriltayo opened 1 month ago

jubriltayo commented 1 month ago

Description

Implement an endpoint for superadmins to retrieve all contact messages from the database. This endpoint must be protected to ensure only superadmins can access it.

Requirements

Acceptance Criteria

  1. Authorization:
  1. Validation:
  1. Endpoint:

Expected Outcomes

Endpoints

User Perspective: Test the entire process from the user's perspective, including making a request to the endpoint and receiving all contact messages. Expected Result: Correct message details returned for valid requests.

Edge Cases: Test edge cases such as database connection issues and ensure proper error handling. Expected Result: Appropriate error messages and status codes (e.g., 500 Internal Server Error) for database issues.

onlyoneuche commented 1 month ago

This is a duplicate of this issue