open-austin / recycling-bin

:recycle:
http://open-austin.github.io/recycling-bin/
The Unlicense
4 stars 5 forks source link

API #1

Open luqmaan opened 9 years ago

luqmaan commented 9 years ago

We need a nice RESTy JSONy APIy.

alexkahn commented 9 years ago

POST /location/:location_id/vote

{
  "int": "1 || -1"
}
luqmaan commented 9 years ago

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/

alexkahn commented 9 years ago

Cool.

prestonp commented 9 years ago

@luqmaan What are the reports exactly? I'm not sure what text is supposed to represent. :confounded:

luqmaan commented 9 years ago

http://mybuildingdoesntrecycle.com/#/reports/54cba58af92c1e030072b2ec

"No recycling! 6 apartment in the building and we all would love to start. "