Skip to content

Instantly share code, notes, and snippets.

@jazztpt
jazztpt / URLandID.json
Created June 24, 2011 17:31
Returning id and url to access the object
{
"id":"125",
"url-mapping":"http://oursocialbloggingsite.com/api/articles/{id}"
}
@jazztpt
jazztpt / POSTarray_with_mapping.json
Created June 24, 2011 17:34
Return array of ids with a url mapping
{
"url_mapping":"http://oursocialbloggingsite.com/api/articles/<id>",
"elements":
[
{
"guid":"9876",
"id":"123"
}
]
}
@jazztpt
jazztpt / GETleaderboard.json
Created June 24, 2011 17:36
GET request returning calculated user data
{
"users_by_total_hits":
[
{
"name":"Betty Black",
"total_hits":"1205",
"num_articles":"23",
"num_blogs":"3"
},
{