...
Code Block | ||
---|---|---|
| ||
{ "minDepth": 2, // this collection must have atleast two levels of units "maxDepth": 2, // this collection can have upto two levels of units "hierarchy": { "1": { "unit": ["Chapter"], // first level units will have category as "Chapter" "metadata": { // metadata definition (similar to primary category definition, for this unit) } "children": ["Quiz", "RevisionTest"] // objects of "Quiz" and "Revision" categories can be added to level 1 units }, "2": { "unit": ["Sub-Chapter"], // second level units category should be "Sub-Chapter" "children": ["ExplanationResource", "LessonPlan", "PracticeSet"] } }, "children": ["eTextbook", "QuestionPaper"] // objects of "eTextbook" and "QuestionPaper" categories can be added to root node } |
...
Code Block | ||
---|---|---|
| ||
{ "maxDepth": 2, // no minDepth defined, hence the collection have 0, 1 or 2 levels of units "hierarchy": { "1": { "unit": ["Chapter"], "children": null // no child resources allowed }, "2": { "unit": ["Sub-Chapter"], "children": "*" // any object can be added } }, "children": ["eTextbook", "QuestionPaper"] } |
Code Block | ||
---|---|---|
| ||
{ // minDepth and maxDepth are not defined, collection can have any number of levels "hierarchy": { "*": { "unit": ["Module"], // units in any level will have the category as "Module" "children": "*" // any object can be added as a child at all the levels } }, "children": ["Assessment"] } |
Code Block | ||
---|---|---|
| ||
{ "maxDepth": 4, // this collection can have upto four levels of units "hierarchy": { "1": { "unit": ["Module"], // units in first level will have the category as "Module" "children": null // no children can be added to first level units }, "*": { "unit": ["Sub-Module"], // all units in levels other than the first level will have the category as "Sub-Module" "children": "*" // any object can be added as a child for units in levels 2, 3 & 4 (as maxDepth is set to 4) } }, "children": ["Assessment"] } |