Skip to content

Instantly share code, notes, and snippets.

@oshimaryo
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oshimaryo/754fff8b01f789b8f963 to your computer and use it in GitHub Desktop.
Save oshimaryo/754fff8b01f789b8f963 to your computer and use it in GitHub Desktop.
Fabble におけるProjectのjson 草稿
{
"_id": "55a342c275627510dc240000",
"created_at": "2015-07-13 08:06:00 UTC,",
"updated_at": "2015-07-13 04:46:58 UTC",
"name": "fabblxxwalkerxx",
"title": "project title",
"is_private": false,
"description": "this is project description.",
"owner_id": "BSON:ObjectId('foobar')",/* owner id*/
"owner_type": "User", /* "User" or "Group"*/
"owner_name": "oshimaryo",
"collaborators": [
{
"_id": "BSON:ObjectId('foobar')",
"name": "yamajun",
"type": "User"
},
{
"_id": "BSON:ObjectId('foobar')",
"name": "xlab",
"type": "Group"
}
],
"license": "0", /* Creative Commons License enum*/
"figure": { "url": "http://foo.com/bar.png" },
"recipe": {
"states": [
{
"_id": "55a3684175627511ea120000",
"created_at": "2015-07-13 08:06:00 UTC,",
"updated_at": "2015-07-13 04:46:58 UTC",
"title": "title of the cards",
"description": "<div>text with html text.<br></div>",
"position": "1", /* order of the state in the recipe */
"figures": [
{
"url": "http://foo.com/bar.png"
},
{
"url": "http://foo.com/bar.png"
}
],
"comments": [
{
"created_at": "2015-07-13 08:06:00 UTC,",
"updated_at": "2015-07-13 04:46:58 UTC",
"user_name": "yamajun",
"content": "hey yo"
},
{
"created_at": "2015-07-13 08:06:00 UTC,",
"updated_at": "2015-07-13 04:46:58 UTC",
"user_name": "yamajun",
"content": "oh yeah"
},
],
"annotations": [
{
"_id": "55a3684175627511ea120000",
"created_at": "2015-07-13 08:06:00 UTC,",
"updated_at": "2015-07-13 04:46:58 UTC",
"title": "title of the cards",
"description": " <div>text with html text.<br></div>",
"position": "1", /* order of the annotation in the state */
"comments": [
{
"created_at": "2015-07-13 08:06:00 UTC,",
"updated_at": "2015-07-13 04:46:58 UTC",
"user_name": "yamajun",
"content": "hey yo"
},
{
"created_at": "2015-07-13 08:06:00 UTC,",
"updated_at": "2015-07-13 04:46:58 UTC",
"user_name": "yamajun",
"content": "oh yeah"
},
],
"figures": [
{
"url": "http://foo.com/bar.png"
},
{
"url": "http://foo.com/bar.png"
}
]
}
]
}
]
},
"note": {
"note_cards": [
{
"_id": "55a3684175627511ea120000",
"created_at": "2015-07-13 08:06:00 UTC,",
"updated_at": "2015-07-13 04:46:58 UTC",
"title": "title of the cards",
"description": " <div>text with html text.<br></div>",
"figures": [
{
"url": "http://foo.com/bar.png"
},
{
"url": "http://foo.com/bar.png"
}
]
}
]
},
"usages": [
{
"_id": "55a3684175627511ea120000",
"created_at": "2015-07-13 08:06:00 UTC,",
"updated_at": "2015-07-13 04:46:58 UTC",
"title": "title of the cards",
"description": " <div>text with html text.<br></div>",
"figures": [
{
"url": "http://foo.com/bar.png"
},
{
"url": "http://foo.com/bar.png"
}
]
}
],
"original": {}, /* original project if this project is fork project */
"derivatives": [ /* projects that were forked from this projects*/
{},
{}
],
"tags": [
{"title": "tag_name"},
{"title": "another_tag_nam"}
],
"tools": [
{
"title": "tool_name",
"url": "http://foo.com/bar.png"
},
{
"title": "tool_name2",
"url": "http://foo.com/bar.zip"
}
],
"materials": [
{
"title": "material_name",
"url": "http://foo.com/bar.png"
},
{
"title": "material_name2",
"url": "http://foo.com/bar.zip"
}
],
"blueprints": [
{
"title": "blueprint_name",
"url": "http://foo.com/bar.png"
},
{
"title": "blueprint_name2",
"url": "http://foo.com/bar.zip"
}
],
"references": [
{
"title": "blueprint_name",
"url": "http://foo.com/bar.png"
},
{
"title": "blueprint_name2",
"url": "http://foo.com/bar.zip"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment