Feature summary:
We need to create a new API route for rejecting a suggested statement so this can be stored in the ISA database. This new route should then be called as soon as a user clicks on the reject button.
e.g. /api/reject-suggestion
Use POST for the new route, with a JSON payload which includes all the details needed for the new entry in the suggestions table:
e.g.
{
"file": "Example.jpg",
"campaign_id": 1,
"depict_item": "Q123",
"google_vision": true,
"google_vision_confidence": 0.6789
}A rejection should be saved with update_status = 0. Make sure you also set update_status to 1 when you "accept" a suggestion.