mestafrica / mobile-wallet-fraud-database

Currently, curbing mobile money fraud in the country is nearly impossible. To tackle this issue, we propose developing a real-time database that allows users to query and determine if a phone number is likely fraudulent based on public contributions, especially from those who have experienced fraud.
MIT License
0 stars 17 forks source link

Admins - Deactivate & Delete Admins #114

Open alexboateng opened 4 days ago

alexboateng commented 4 days ago

Endpoint: /api/admin/users/deactivate/{adminId} Method: POST Description: Deactivates an admin's account, preventing them from logging in or performing any administrative actions. Authorization Required: Yes

Parameters: Admin ID: The unique identifier for the admin.

Feedback: Success: "Admin account deactivated successfully." Failure: "Failed to deactivate admin account. Please try again."

Endpoint: /api/admin/users/delete/{adminId} Method: DELETE Description: Permanently deletes an admin's account from the system. Authorization Required: Yes

Parameters: Admin ID: The unique identifier for the admin.

Feedback: Success: "Admin account deleted successfully." Failure: "Failed to delete admin account. Please ensure the admin ID is correct and try again."

Barmoo commented 1 day ago

114 kindly assign this task to me