Skip to content

Instantly share code, notes, and snippets.

@tokumine
Created May 28, 2010 10:43
Show Gist options
  • Save tokumine/417027 to your computer and use it in GitHub Desktop.
Save tokumine/417027 to your computer and use it in GitHub Desktop.
Recording a users classification
================================
POST /classifications/1
variables expected:
value = true/false
method = 'PUT'
returns JSON:
{'update' => true} (or false if problem)
Getting list of current users and your rank
===========================================
GET /users/rank
returns:
[{'id':1,
'username': 'tokumine',
'avatar': 'http://www.gravatar.com/avatar.php?gravatar_id=41234123412341',
'rank': 1,
'meters_done': 42354,
'current_user': true
},
{'id':2,
'username': 'xavijam',
'avatar': 'http://www.gravatar.com/avatar.php?gravatar_id=41234123412341',
'rank': 2,
'meters_done': 2423,
'current_user': false
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment