Open luqmaan opened 9 years ago
POST /location/:location_id/vote
{
"int": "1 || -1"
}
We should make sure the backend stores downvotes/upvotes separately (instead of just adding them up into a single score).
One way to counter double voting is to fingerprint the browser and remember that the fingerprint has voted. This is better than cookies since your fingerprint remains the same regardless of entering incognito. http://valve.github.io/fingerprintjs2/
Cool.
@luqmaan What are the reports exactly? I'm not sure what text
is supposed to represent. :confounded:
http://mybuildingdoesntrecycle.com/#/reports/54cba58af92c1e030072b2ec
"No recycling! 6 apartment in the building and we all would love to start. "
We need a nice RESTy JSONy APIy.
[x] GET /location
[x] GET /location/:location_id
[x] POST /location/:location_id
[x] POST /location/:location_id/report