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

Master API Endpoint #9

Open
NeoAppsAI opened this issue Aug 25, 2024 · 0 comments
Open

Master API Endpoint #9

NeoAppsAI opened this issue Aug 25, 2024 · 0 comments
Labels
roadmap Future Roadmap

Comments

@NeoAppsAI
Copy link
Collaborator

Feature: Create a Master API Endpoint for Dynamic View Data Retrieval

Description:

Implement a master API endpoint that dynamically retrieves data from database views based on a view name provided in the API request.
This API should support querying multiple predefined views and return data in JSON format.
Tasks:

Create a new API controller (MasterReportsController) in the backend.
Implement a method (GetReport) that accepts a view name as a parameter and retrieves data from the corresponding database view.
Ensure security by whitelisting allowed views and preventing SQL injection.
Serialize the retrieved data into JSON and return it in the API response.
Add unit tests to validate the API’s behavior with various view names and edge cases.
Expected Outcome:

A single API endpoint that can serve data from multiple database views dynamically based on the view name provided in the request.

@NeoAppsAI NeoAppsAI added the roadmap Future Roadmap label Aug 25, 2024
@Neopric-Inc Neopric-Inc locked and limited conversation to collaborators Aug 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
roadmap Future Roadmap
Projects
None yet
Development

No branches or pull requests

1 participant