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

Implement Adding Vote API #156

Closed muchinon closed 3 days ago

muchinon commented 1 week ago
Screenshot 2024-11-10 205630

Endpoint: /api/votes

Method: POST

Description: Allow users to vote on specific fraud report.

Authorization Required: Yes

Feedback Success: Vote recorded successfully Updated vote count returned HTTP Status: 200 OK

Failure: "Content not found" "Unauthorized to vote" "Invalid vote type" HTTP Status: 400 Bad Request

Barmoo commented 1 week ago

kindly assign #156 to me (BARMOO