Skip to content

Instantly share code, notes, and snippets.

View jonmarkgo's full-sized avatar
🎓
preparing the MLH Fellowship

Jonathan Gottfried jonmarkgo

🎓
preparing the MLH Fellowship
View GitHub Profile
@jonmarkgo
jonmarkgo / gist:985047
Created May 22, 2011 00:58
POST /players.json
{
"username": "Jon",
"password": "abc123",
"email": "[email protected]",
"direction": 1
}
@jonmarkgo
jonmarkgo / gist:985057
Created May 22, 2011 01:05
New player response
{
"player": {
"created_at": "2011-05-22T00:56:35Z",
"updated_at": "2011-05-22T00:56:35Z",
"username": "Jon",
"id": 5,
"direction": 1,
"key": "5456481caaeb7b24fcb2ab920c8acd12ccd9fd0a719bcf468540a78b8bd55d13",
"team_id": null,
"email": null
@jonmarkgo
jonmarkgo / gist:985066
Created May 22, 2011 01:10
PUT /players/id.json
{
"direction": 5,
"access_key": "5456481caaeb7b24fcb2ab920c8acd12ccd9fd0a719bcf468540a78b8bd55d13",
"password": "xyz345",
"email": "[email protected]"
}
@jonmarkgo
jonmarkgo / gist:985073
Created May 22, 2011 01:14
Delete player
{
"access_key": "5456481caaeb7b24fcb2ab920c8acd12ccd9fd0a719bcf468540a78b8bd55d13"
}
@jonmarkgo
jonmarkgo / gist:985076
Created May 22, 2011 01:18
Create game
{
"name": "Meh",
"password": "abc123",
"owner_id": 5
}
@jonmarkgo
jonmarkgo / gist:985078
Created May 22, 2011 01:20
create game response
{
"game": {
"name": "Meh",
"created_at": "2011-05-22T01:17:51Z",
"end_time": null,
"updated_at": "2011-05-22T01:17:51Z",
"id": 2,
"owner_id": 5
}
}
@jonmarkgo
jonmarkgo / gist:985085
Created May 22, 2011 01:42
Create team
{
"name": "Team Edward",
"game_id": 2,
"game_password": "abc123",
"leader_id": 5
}
@jonmarkgo
jonmarkgo / gist:985086
Created May 22, 2011 01:43
create team response
{
"team": {
"name": "Team Edward",
"created_at": "2011-05-22T01:42:31Z",
"updated_at": "2011-05-22T01:42:31Z",
"id": 1,
"game_id": 2,
"leader_id": 5
}
}
@jonmarkgo
jonmarkgo / gist:985087
Created May 22, 2011 01:45
get player
{
"player": {
"created_at": "2011-05-22T00:56:35Z",
"updated_at": "2011-05-22T01:10:14Z",
"username": "Jon",
"id": 5,
"direction": 5,
"team_id": null,
"email": "[email protected]"
}
@jonmarkgo
jonmarkgo / gist:985095
Created May 22, 2011 01:53
Update team
{
"name": "Team Jacob",
"leader_id": 1,
"player_id": 5,
"access_key": "5456481caaeb7b24fcb2ab920c8acd12ccd9fd0a719bcf468540a78b8bd55d13"
}