Skip to content

Instantly share code, notes, and snippets.

@j2labs
Created January 7, 2012 06:05
Show Gist options
  • Save j2labs/1573951 to your computer and use it in GitHub Desktop.
Save j2labs/1573951 to your computer and use it in GitHub Desktop.
API output for a REST call with multiple items.
$ curl http://localhost:6767/todo/ | python -m json.tool
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 241 100 241 0 0 54463 0 --:--:-- --:--:-- --:--:-- 117k
[
{
"_cls": "Todo",
"_id": "84b38d14-4a11-439a-8e3f-bbe5a499714b",
"_types": [
"Todo"
],
"done": false,
"order": 2,
"text": "i dunno?"
},
{
"_cls": "Todo",
"_id": "540b4612-cf6a-4d9f-b067-4f2c5164f8e9",
"_types": [
"Todo"
],
"done": false,
"text": "Watch Blade Runner"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment