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/fraud/reports/delete/{reportId}
Method: DELETE
Description: Allows users to delete their fraud report.
Authorization Required: Yes
Security Measures:
Authorization Check: Ensure the user is authenticated and owns the report.
Feedback:
Success: "Your fraud report has been successfully deleted."
Failure: "You do not have permission to delete this report or it does not exist."
Note: Add test cases for all scenarios
Only Owners of a record should delete the record
Endpoint: /api/fraud/reports/delete/{reportId} Method: DELETE Description: Allows users to delete their fraud report. Authorization Required: Yes
Security Measures: Authorization Check: Ensure the user is authenticated and owns the report.
Feedback: Success: "Your fraud report has been successfully deleted." Failure: "You do not have permission to delete this report or it does not exist."
Note: Add test cases for all scenarios Only Owners of a record should delete the record