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

[FEAT]: Implement Backend API for Super Admin Retrieval of Squeeze Records #1326

Open
9 tasks
jayudoye opened this issue Mar 1, 2025 · 0 comments
Open
9 tasks
Labels

Comments

@jayudoye
Copy link

jayudoye commented Mar 1, 2025

Description

Development of an API endpoint that allows a super admin to retrieve all the squeeze records in the database

Acceptance Criteria

  • The page should be accessible at /api/v1/squeeze
  • The endpoint should accept HTTP GET requests
  • The system should print all the squeeze records in the database
  • Functionality will be accessible only by a super admin

Example Request

GET /api/v1/squeeze

Response [Success]

{   
  "message": "Squeeze Records Retrieved Successfully" ,
 "status_code": 200
}
{   
  "message": "User is Unauthorized" ,
 "status_code": 401
}
{   
  "message": "User is Forbidden",
 "status_code": 403
}
{   
  "message": "Internal Server Error",
 "status_code": 500 
}

Purpose

This feature will enable the generation of all existing squeeze records in the database by a user with super admin privileges

Requirements

  • Develop a RESTful API endpoint to handle GET requests
  • Prints all squeeze records in the database
  • Accessible by only super admin
  • Return appropriate response
  • Handle errors and return appropriate status codes.

Expected Outcome

This process ensures the display of all the squeeze records in the database. However, this can only be accessed by a super admin

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

No branches or pull requests

1 participant