Last change
on this file since 327 was
327,
checked in by jkraaijeveld, 13 years ago
|
Added first set of json document 'examples'
|
File size:
809 bytes
|
Line | |
---|
1 | //SurveyItem
|
---|
2 | {
|
---|
3 | _id: 999,
|
---|
4 | _rev: 839,
|
---|
5 |
|
---|
6 | type: "SurveyItem",
|
---|
7 |
|
---|
8 | survey: surveyid, //Included so conditions can be checked
|
---|
9 |
|
---|
10 | condition: "function(...) {......}", //Should be able to refer to previous questions
|
---|
11 | name: "SurveyItemName",
|
---|
12 |
|
---|
13 | subitems: [ //Empty when there are no subitems, should work recursively
|
---|
14 | surveyitem1,
|
---|
15 | surveyitem2,
|
---|
16 | ],
|
---|
17 |
|
---|
18 | item: headeritemId, textitemId, questionitemId //can be header, text or question, verify in validate_doc_update
|
---|
19 | }
|
---|
20 |
|
---|
21 | //HeaderItem
|
---|
22 | {
|
---|
23 | _id: 124,
|
---|
24 | _rev: 23195,
|
---|
25 |
|
---|
26 | type:HeaderItem,
|
---|
27 | content: "hello!" //Markdown syntax
|
---|
28 | }
|
---|
29 |
|
---|
30 | //TextItem
|
---|
31 | {
|
---|
32 | _id: 0120294,
|
---|
33 | _rev: 9294,
|
---|
34 |
|
---|
35 | type: TextItem,
|
---|
36 | content: "I am a text" //Markdown syntax
|
---|
37 | }
|
---|
38 |
|
---|
39 | //QuestionItem
|
---|
40 | {
|
---|
41 | _id: 1040,
|
---|
42 | _rev 1020,
|
---|
43 |
|
---|
44 | type: QuestionItem,
|
---|
45 | question: questionid
|
---|
46 | }
|
---|
47 |
|
---|
48 |
|
---|
49 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.