Skip to content

No Route to Retrieve All Invites #1310

@OchigboDaniel

Description

@OchigboDaniel

Description

Currently, there is no implementation for route that allows admins to retrieve all list of created invites in the system. This functionality is necessary for admins to view all created invites .

Acceptance Criteria

  1. Data Retrieval
    The route fetches all invites from the database.

  2. Successful API Response
    A 200 OK response is returned with a list of invites in JSON format.

Purpose

The purpose of this functionality is to enable admins to retrieve and view a comprehensive list of all created invites within the system, ensuring better oversight and management of invitations.

Requirements

  • Store invites in PostgreSQL Database.
  • Define a GET /invites endpoint to fetch all invites.
  • Return JSON responses, including invite details or an empty list if none exist.
  • Handle errors properly

Expected Outcome

{
"status": "string",
"status_code": number,
"message": "string",
"data": {}
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions