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

Admin - Create an Admin #112

Closed alexboateng closed 2 weeks ago

alexboateng commented 3 weeks ago

Endpoint: /api/admin/users/add Method: POST Description: Adds a new admin with specified permissions. Authorization Required: Yes

Parameters: First Name: Admin's first name. Last Name: Admin's last name. Email: Admin's email address. Phone Number: Admin's phone number. Passwor: New password for admin. Permissions: Specific administrative permissions such as approving fraud reports, setting API key limits, etc.

Permissions Can approve fraud report Can delete or remove fraud report Can set API key usage limit Can set domain restrictions Can set domain restrictions Can deactivate user’s account Can set system configuration Can add or remove admins

Validations: Email Address: Must be unique and in a valid email format.

Feedback: Success: "New admin added successfully." Failure: "Failed to add new admin. Please check the provided details."

Andrew-Sackey commented 3 weeks ago

Please i want to be assigned to this issue