Skip to content

Commit

Permalink
Basic structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinswiber committed Jul 3, 2012
0 parents commit 31b4540
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
Binary file added .example.json.swp
Binary file not shown.
63 changes: 63 additions & 0 deletions example.json
@@ -0,0 +1,63 @@
{
"profile": "http://developer.siren.io/docs",
"class": "siren:categories",
"body": { "count": 1 },
"items": [
{
"class": "siren:category",
"body": { "name": "web" },
"embedded": [
{
"class": "siren:category:owner",
"body": { "id": "sirenadmin" },
"links": [
{ "rel": "self", "href": "http://api.siren.io/users/sirenadmin" }
]
},
{ "class": "siren:category:events", "href": "http://api.siren.io/users/sirenadmin/categories/web/events" },
{ "class": "siren:category:rules", "href": "http://api.siren.io/users/sirenadmin/categories/web/rules" }
],
"links": [
{ "rel": "self", "href": "http://api.siren.io/users/sirenadmin/categories/web" }
{ "rel": "up", "href": "http://api.siren.io/users/sirenadmin/categories/" }
],
"actions": [
{
"class": "siren:event:add",
"href": "http://api.siren.io/users/sirenadmin/categories/web/events",
"method": "POST",
"type": "application/vnd.siren+json",
"item": { "body": "", "id": "sirenadmin/web" }
}
]
}
],
"links": [
{ "rel": "self", "href": "http://api.siren.io/users/kevinswiber/categories/web" }
]
}


{
"class": "siren:category",
"body": { "name": "web" },
"embedded": [
{ "class": "siren:category:owner", "body": { "id": "sirenadmin" }, "links": [ { "rel": "self", "href": "http://api.siren.io/users/sirenadmin" },
{ "class": "siren:category:events", "href": "http://api.siren.io/users/sirenadmin/categories/web/events" },
{ "class": "siren:category:rules", "href": "http://api.siren.io/users/sirenadmin/categories/web/rules" }
],
"links": [
{ "rel": "self", "href": "http://api.siren.io/users/sirenadmin/categories/web" },
{ "rel": "up", "href": "http://api.siren.io/users/sirenadmin/categories/" }
],
"actions": [
{
"class": "siren:event:add",
"href": "http://api.siren.io/users/sirenadmin/categories/web/events",
"method": "POST",
"type": "application/vnd.siren+json",
"item": { "body": "", "id": "sirenadmin/web" }
}
]
}

0 comments on commit 31b4540

Please sign in to comment.