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.
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."
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."