Skip to content

Conversation

OBE96
Copy link

@OBE96 OBE96 commented Mar 2, 2025

Description

Implement a new API endpoint that allows exporting the list of all users in a CSV file format. This functionality should be accessible only to users with the Super Admin role. The exported CSV should include the necessary user details (e.g., user ID, Fullname, email).

Closes #427

Changes proposed

What were you told to do?

[FEAT] Implement an endpoint to export all users in an CSV file(only for super admin role)

What did you do?

i created a new endpoint in the Usercontroller named ExportUsersToCsv , created a class named ExportUsersToCsvQueryHandler in the handlers folder , created another class named ExportUsersToCsvQuery in Query folder , finally i wrote a unit test code for my ExportUsersToCsvQueryHandler class . the unit test class is named ExportUsersToCsvQueryHandlerShould

Check List (Check all the applicable boxes)

🚨Please review the contribution guideline for this repository.

-[done ] My code follows the code style of this project.
-[ done] This PR does not contain plagiarized content.
-[done ] The title and description of the PR is clear and explains the approach.
-[ not done] I am making a pull request against the dev branch (left side).
-[ done] My commit messages styles matches our requested structure.
-[ done] My code additions will fail neither code linting checks nor unit test.
-[done ] I am only making changes to files I was requested to.

Screenshots/Videos

screen1

cvs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] Implement an endpoint to export all users in an CSV file(only for super admin role)

1 participant