Browse Source

improved workspace content subfolder for better test

Skylsmoi 7 years ago
parent
commit
f69e1023d0
1 changed files with 43 additions and 0 deletions
  1. 43 0
      jsonserver/static_db.json

+ 43 - 0
jsonserver/static_db.json View File

99
     "content": [
99
     "content": [
100
       {
100
       {
101
         "id": 1,
101
         "id": 1,
102
+        "parent_id": null,
103
+        "workspace_id": 1,
102
         "title": "La programmation fonctionnelle",
104
         "title": "La programmation fonctionnelle",
103
         "type": "PageHtml",
105
         "type": "PageHtml",
104
         "status": "validated"
106
         "status": "validated"
105
       },
107
       },
106
       {
108
       {
107
         "id": 2,
109
         "id": 2,
110
+        "parent_id": null,
111
+        "workspace_id": 1,
108
         "title": "La programmation fonctionnelle est-elle vraiment utile ?",
112
         "title": "La programmation fonctionnelle est-elle vraiment utile ?",
109
         "type": "Thread",
113
         "type": "Thread",
110
         "status": "current"
114
         "status": "current"
111
       },
115
       },
112
       {
116
       {
113
         "id": 6,
117
         "id": 6,
118
+        "parent_id": null,
119
+        "workspace_id": 1,
114
         "title": "Une photo moche",
120
         "title": "Une photo moche",
115
         "type": "File",
121
         "type": "File",
116
         "status": "current"
122
         "status": "current"
117
       },
123
       },
118
       {
124
       {
119
         "id": 10,
125
         "id": 10,
126
+        "parent_id": null,
127
+        "workspace_id": 1,
120
         "title": "le README.md d'un random repo github",
128
         "title": "le README.md d'un random repo github",
121
         "type": "PageMarkdown",
129
         "type": "PageMarkdown",
122
         "status": "current"
130
         "status": "current"
123
       },
131
       },
124
       {
132
       {
125
         "id": 7,
133
         "id": 7,
134
+        "parent_id": null,
135
+        "workspace_id": 1,
126
         "title": "Une liste de truc à faire que je ferai jamais",
136
         "title": "Une liste de truc à faire que je ferai jamais",
127
         "type": "Task",
137
         "type": "Task",
128
         "status": "current"
138
         "status": "current"
129
       },
139
       },
130
       {
140
       {
131
         "id": 8,
141
         "id": 8,
142
+        "parent_id": null,
143
+        "workspace_id": 1,
132
         "title": "Ça, ça marche pas. Merci de le fix",
144
         "title": "Ça, ça marche pas. Merci de le fix",
133
         "type": "Issue",
145
         "type": "Issue",
134
         "status": "current"
146
         "status": "current"
135
       },
147
       },
136
       {
148
       {
137
         "id": 3,
149
         "id": 3,
150
+        "parent_id": null,
151
+        "workspace_id": 1,
138
         "title": "Programmation objet",
152
         "title": "Programmation objet",
139
         "type": "folder",
153
         "type": "folder",
140
         "content": [
154
         "content": [
141
           {
155
           {
142
             "id": 4,
156
             "id": 4,
157
+            "parent_id": 3,
158
+            "workspace_id": 1,
143
             "title": "des trucs de backend",
159
             "title": "des trucs de backend",
144
             "type": "File",
160
             "type": "File",
145
             "status": "outdated"
161
             "status": "outdated"
146
           },
162
           },
147
           {
163
           {
148
             "id": 5,
164
             "id": 5,
165
+            "parent_id": 3,
166
+            "workspace_id": 1,
149
             "title": "on s'emmerde",
167
             "title": "on s'emmerde",
150
             "type": "PageHtml",
168
             "type": "PageHtml",
151
             "status": "outdated"
169
             "status": "outdated"
170
+          },
171
+          {
172
+            "id": 11,
173
+            "parent_id": 3,
174
+            "workspace_id": 1,
175
+            "title": "Hidden features",
176
+            "type": "folder",
177
+            "content": [
178
+              {
179
+                "id": 12,
180
+                "parent_id": 11,
181
+                "workspace_id": 1,
182
+                "title": "flatMap",
183
+                "type": "PageHtml",
184
+                "status": "current"
185
+              },
186
+              {
187
+                "id": 13,
188
+                "parent_id": 11,
189
+                "workspace_id": 1,
190
+                "title": "c'est tout pété",
191
+                "type": "Issue",
192
+                "status": "current"
193
+              }
194
+            ]
152
           }
195
           }
153
         ]
196
         ]
154
       }
197
       }