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 10 forks source link

Delete Report #15

Closed alexboateng closed 1 month ago

alexboateng commented 1 month ago

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

VidaOwusu commented 1 month ago

@alexboateng I want to take up this issue