zou 0.20.67__py3-none-any.whl → 0.20.69__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- zou/__init__.py +1 -1
- zou/app/blueprints/assets/resources.py +134 -91
- zou/app/blueprints/auth/resources.py +6 -6
- zou/app/blueprints/breakdown/resources.py +47 -47
- zou/app/blueprints/chats/resources.py +8 -8
- zou/app/blueprints/comments/resources.py +62 -49
- zou/app/blueprints/concepts/resources.py +23 -23
- zou/app/blueprints/crud/base.py +6 -6
- zou/app/blueprints/crud/output_file.py +2 -2
- zou/app/blueprints/crud/output_type.py +2 -2
- zou/app/blueprints/crud/preview_file.py +2 -2
- zou/app/blueprints/crud/software.py +2 -2
- zou/app/blueprints/crud/working_file.py +2 -2
- zou/app/blueprints/departments/resources.py +20 -20
- zou/app/blueprints/edits/resources.py +33 -33
- zou/app/blueprints/entities/resources.py +8 -8
- zou/app/blueprints/events/resources.py +7 -7
- zou/app/blueprints/export/csv/assets.py +2 -2
- zou/app/blueprints/export/csv/casting.py +2 -2
- zou/app/blueprints/export/csv/edits.py +2 -2
- zou/app/blueprints/export/csv/playlists.py +2 -2
- zou/app/blueprints/export/csv/shots.py +2 -2
- zou/app/blueprints/files/resources.py +123 -123
- zou/app/blueprints/news/resources.py +28 -28
- zou/app/blueprints/persons/resources.py +75 -75
- zou/app/blueprints/playlists/resources.py +37 -37
- zou/app/blueprints/previews/resources.py +36 -36
- zou/app/blueprints/projects/resources.py +159 -159
- zou/app/blueprints/search/resources.py +3 -3
- zou/app/blueprints/shots/resources.py +250 -198
- zou/app/blueprints/source/csv/assets.py +2 -2
- zou/app/blueprints/source/csv/casting.py +2 -2
- zou/app/blueprints/source/csv/edits.py +2 -2
- zou/app/blueprints/source/csv/shots.py +2 -2
- zou/app/blueprints/source/csv/task_type_estimations.py +10 -10
- zou/app/blueprints/source/otio.py +6 -6
- zou/app/blueprints/source/shotgun/import_errors.py +2 -2
- zou/app/blueprints/tasks/resources.py +135 -135
- zou/app/blueprints/user/resources.py +87 -87
- zou/app/models/attachment_file.py +4 -0
- zou/app/services/comments_service.py +41 -9
- zou/app/services/tasks_service.py +1 -0
- zou/migrations/versions/1b0ab951adca_add_reply_id_to_attachments.py +44 -0
- {zou-0.20.67.dist-info → zou-0.20.69.dist-info}/METADATA +5 -5
- {zou-0.20.67.dist-info → zou-0.20.69.dist-info}/RECORD +49 -48
- {zou-0.20.67.dist-info → zou-0.20.69.dist-info}/WHEEL +0 -0
- {zou-0.20.67.dist-info → zou-0.20.69.dist-info}/entry_points.txt +0 -0
- {zou-0.20.67.dist-info → zou-0.20.69.dist-info}/licenses/LICENSE +0 -0
- {zou-0.20.67.dist-info → zou-0.20.69.dist-info}/top_level.txt +0 -0
|
@@ -27,14 +27,14 @@ class CastingResource(Resource):
|
|
|
27
27
|
name: project_id
|
|
28
28
|
required: True
|
|
29
29
|
type: string
|
|
30
|
-
format:
|
|
31
|
-
|
|
30
|
+
format: uuid
|
|
31
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
32
32
|
- in: path
|
|
33
33
|
name: entity_id
|
|
34
34
|
required: True
|
|
35
35
|
type: string
|
|
36
|
-
format:
|
|
37
|
-
|
|
36
|
+
format: uuid
|
|
37
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
38
38
|
responses:
|
|
39
39
|
200:
|
|
40
40
|
description: Casting of given entity
|
|
@@ -54,14 +54,14 @@ class CastingResource(Resource):
|
|
|
54
54
|
name: project_id
|
|
55
55
|
required: True
|
|
56
56
|
type: string
|
|
57
|
-
format:
|
|
58
|
-
|
|
57
|
+
format: uuid
|
|
58
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
59
59
|
- in: path
|
|
60
60
|
name: entity_id
|
|
61
61
|
required: True
|
|
62
62
|
type: string
|
|
63
|
-
format:
|
|
64
|
-
|
|
63
|
+
format: uuid
|
|
64
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
65
65
|
responses:
|
|
66
66
|
200:
|
|
67
67
|
description: Modification of assets linked to an entity
|
|
@@ -84,8 +84,8 @@ class EpisodesCastingResource(Resource):
|
|
|
84
84
|
name: project_id
|
|
85
85
|
required: True
|
|
86
86
|
type: string
|
|
87
|
-
format:
|
|
88
|
-
|
|
87
|
+
format: uuid
|
|
88
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
89
89
|
responses:
|
|
90
90
|
200:
|
|
91
91
|
description: Casting of episodes
|
|
@@ -107,14 +107,14 @@ class EpisodeSequenceAllCastingResource(Resource):
|
|
|
107
107
|
name: project_id
|
|
108
108
|
required: True
|
|
109
109
|
type: string
|
|
110
|
-
format:
|
|
111
|
-
|
|
110
|
+
format: uuid
|
|
111
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
112
112
|
- in: path
|
|
113
113
|
name: episode_id
|
|
114
114
|
required: True
|
|
115
115
|
type: string
|
|
116
|
-
format:
|
|
117
|
-
|
|
116
|
+
format: uuid
|
|
117
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
118
118
|
responses:
|
|
119
119
|
200:
|
|
120
120
|
description: Casting for all shots from given episode.
|
|
@@ -139,8 +139,8 @@ class SequenceAllCastingResource(Resource):
|
|
|
139
139
|
name: project_id
|
|
140
140
|
required: True
|
|
141
141
|
type: string
|
|
142
|
-
format:
|
|
143
|
-
|
|
142
|
+
format: uuid
|
|
143
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
144
144
|
responses:
|
|
145
145
|
200:
|
|
146
146
|
description: Casting for all shots from given project.
|
|
@@ -162,14 +162,14 @@ class SequenceCastingResource(Resource):
|
|
|
162
162
|
name: project_id
|
|
163
163
|
required: True
|
|
164
164
|
type: string
|
|
165
|
-
format:
|
|
166
|
-
|
|
165
|
+
format: uuid
|
|
166
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
167
167
|
- in: path
|
|
168
168
|
name: sequence_id
|
|
169
169
|
required: True
|
|
170
170
|
type: string
|
|
171
|
-
format:
|
|
172
|
-
|
|
171
|
+
format: uuid
|
|
172
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
173
173
|
responses:
|
|
174
174
|
200:
|
|
175
175
|
description: Casting of shots from given sequence
|
|
@@ -192,14 +192,14 @@ class AssetTypeCastingResource(Resource):
|
|
|
192
192
|
name: project_id
|
|
193
193
|
required: True
|
|
194
194
|
type: string
|
|
195
|
-
format:
|
|
196
|
-
|
|
195
|
+
format: uuid
|
|
196
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
197
197
|
- in: path
|
|
198
198
|
name: asset_type_id
|
|
199
199
|
required: True
|
|
200
200
|
type: string
|
|
201
|
-
format:
|
|
202
|
-
|
|
201
|
+
format: uuid
|
|
202
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
203
203
|
responses:
|
|
204
204
|
200:
|
|
205
205
|
description: Casting of assets from given asset type
|
|
@@ -224,8 +224,8 @@ class ShotAssetInstancesResource(Resource, ArgsMixin):
|
|
|
224
224
|
name: shot_id
|
|
225
225
|
required: True
|
|
226
226
|
type: string
|
|
227
|
-
format:
|
|
228
|
-
|
|
227
|
+
format: uuid
|
|
228
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
229
229
|
responses:
|
|
230
230
|
200:
|
|
231
231
|
description: All assets linked to shot
|
|
@@ -246,8 +246,8 @@ class ShotAssetInstancesResource(Resource, ArgsMixin):
|
|
|
246
246
|
name: shot_id
|
|
247
247
|
required: True
|
|
248
248
|
type: string
|
|
249
|
-
format:
|
|
250
|
-
|
|
249
|
+
format: uuid
|
|
250
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
251
251
|
responses:
|
|
252
252
|
201:
|
|
253
253
|
description: Asset instance added to given shot
|
|
@@ -275,14 +275,14 @@ class RemoveShotAssetInstanceResource(Resource, ArgsMixin):
|
|
|
275
275
|
name: shot_id
|
|
276
276
|
required: True
|
|
277
277
|
type: string
|
|
278
|
-
format:
|
|
279
|
-
|
|
278
|
+
format: uuid
|
|
279
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
280
280
|
- in: path
|
|
281
281
|
name: asset_instance_id
|
|
282
282
|
required: True
|
|
283
283
|
type: string
|
|
284
|
-
format:
|
|
285
|
-
|
|
284
|
+
format: uuid
|
|
285
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
286
286
|
responses:
|
|
287
287
|
204:
|
|
288
288
|
description: Asset instance removed from given shot
|
|
@@ -308,8 +308,8 @@ class SceneAssetInstancesResource(Resource, ArgsMixin):
|
|
|
308
308
|
name: scene_id
|
|
309
309
|
required: True
|
|
310
310
|
type: string
|
|
311
|
-
format:
|
|
312
|
-
|
|
311
|
+
format: uuid
|
|
312
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
313
313
|
responses:
|
|
314
314
|
200:
|
|
315
315
|
description: All asset instances linked to given scene
|
|
@@ -330,8 +330,8 @@ class SceneAssetInstancesResource(Resource, ArgsMixin):
|
|
|
330
330
|
name: scene_id
|
|
331
331
|
required: True
|
|
332
332
|
type: string
|
|
333
|
-
format:
|
|
334
|
-
|
|
333
|
+
format: uuid
|
|
334
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
335
335
|
responses:
|
|
336
336
|
201:
|
|
337
337
|
description: Asset instances created on given scene
|
|
@@ -361,8 +361,8 @@ class SceneCameraInstancesResource(Resource):
|
|
|
361
361
|
name: scene_id
|
|
362
362
|
required: True
|
|
363
363
|
type: string
|
|
364
|
-
format:
|
|
365
|
-
|
|
364
|
+
format: uuid
|
|
365
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
366
366
|
responses:
|
|
367
367
|
201:
|
|
368
368
|
description: All camera instances linked to scene
|
|
@@ -390,26 +390,26 @@ class ProjectEntityLinksResource(Resource, ArgsMixin):
|
|
|
390
390
|
name: project_id
|
|
391
391
|
required: True
|
|
392
392
|
type: string
|
|
393
|
-
format:
|
|
394
|
-
|
|
393
|
+
format: uuid
|
|
394
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
395
395
|
- in: query
|
|
396
396
|
name: page
|
|
397
397
|
required: False
|
|
398
398
|
type: string
|
|
399
399
|
format: Number
|
|
400
|
-
|
|
400
|
+
example: 2
|
|
401
401
|
- in: query
|
|
402
402
|
name: limit
|
|
403
403
|
required: False
|
|
404
404
|
type: string
|
|
405
405
|
format: Number
|
|
406
|
-
|
|
406
|
+
example: 100
|
|
407
407
|
- in: query
|
|
408
408
|
name: cursor_created_at
|
|
409
409
|
required: False
|
|
410
410
|
type: string
|
|
411
411
|
format: Datetime
|
|
412
|
-
|
|
412
|
+
example: 2020-01-01T00:00:00
|
|
413
413
|
responses:
|
|
414
414
|
200:
|
|
415
415
|
description: All entity links related to given project
|
|
@@ -441,14 +441,14 @@ class ProjectEntityLinkResource(Resource):
|
|
|
441
441
|
name: project_id
|
|
442
442
|
required: True
|
|
443
443
|
type: string
|
|
444
|
-
format:
|
|
445
|
-
|
|
444
|
+
format: uuid
|
|
445
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
446
446
|
- in: path
|
|
447
447
|
name: entity_link_id
|
|
448
448
|
required: True
|
|
449
449
|
type: string
|
|
450
|
-
format:
|
|
451
|
-
|
|
450
|
+
format: uuid
|
|
451
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
452
452
|
responses:
|
|
453
453
|
200:
|
|
454
454
|
description: Entity link deleted
|
|
@@ -28,7 +28,7 @@ class ChatResource(Resource):
|
|
|
28
28
|
description: ID of the entity related to the chat
|
|
29
29
|
type: integer
|
|
30
30
|
required: true
|
|
31
|
-
|
|
31
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
32
32
|
responses:
|
|
33
33
|
200:
|
|
34
34
|
description: Chat information
|
|
@@ -56,7 +56,7 @@ class ChatMessagesResource(Resource):
|
|
|
56
56
|
description: ID of the entity related to the chat
|
|
57
57
|
type: integer
|
|
58
58
|
required: true
|
|
59
|
-
|
|
59
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
60
60
|
responses:
|
|
61
61
|
200:
|
|
62
62
|
description: Chat messages
|
|
@@ -79,13 +79,13 @@ class ChatMessagesResource(Resource):
|
|
|
79
79
|
description: ID of the entity related to the chat
|
|
80
80
|
type: integer
|
|
81
81
|
required: true
|
|
82
|
-
|
|
82
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
83
83
|
- in: body
|
|
84
84
|
name: message
|
|
85
85
|
description: Message to send
|
|
86
86
|
type: string
|
|
87
87
|
required: true
|
|
88
|
-
|
|
88
|
+
example: Hello, world!
|
|
89
89
|
- in: formData
|
|
90
90
|
name: files
|
|
91
91
|
description: Files to attach
|
|
@@ -143,13 +143,13 @@ class ChatMessageResource(Resource):
|
|
|
143
143
|
description: ID of the entity related to the chat
|
|
144
144
|
type: integer
|
|
145
145
|
required: true
|
|
146
|
-
|
|
146
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
147
147
|
- in: path
|
|
148
148
|
name: chat_message_id
|
|
149
149
|
description: ID of the chat message
|
|
150
150
|
type: integer
|
|
151
151
|
required: true
|
|
152
|
-
|
|
152
|
+
example: 1
|
|
153
153
|
responses:
|
|
154
154
|
200:
|
|
155
155
|
description: Chat message
|
|
@@ -172,13 +172,13 @@ class ChatMessageResource(Resource):
|
|
|
172
172
|
description: ID of the entity related to the chat
|
|
173
173
|
type: integer
|
|
174
174
|
required: true
|
|
175
|
-
|
|
175
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
176
176
|
- in: path
|
|
177
177
|
name: chat_message_id
|
|
178
178
|
description: ID of the chat message
|
|
179
179
|
type: integer
|
|
180
180
|
required: true
|
|
181
|
-
|
|
181
|
+
example: 1
|
|
182
182
|
responses:
|
|
183
183
|
204:
|
|
184
184
|
description: Empty response
|
|
@@ -37,13 +37,13 @@ class DownloadAttachmentResource(Resource):
|
|
|
37
37
|
name: attachment_file_id
|
|
38
38
|
required: True
|
|
39
39
|
type: string
|
|
40
|
-
format:
|
|
41
|
-
|
|
40
|
+
format: uuid
|
|
41
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
42
42
|
- in: path
|
|
43
43
|
name: file_name
|
|
44
44
|
required: True
|
|
45
45
|
type: string
|
|
46
|
-
|
|
46
|
+
example: filename
|
|
47
47
|
responses:
|
|
48
48
|
200:
|
|
49
49
|
description: Attachment file downloaded
|
|
@@ -109,14 +109,14 @@ class AckCommentResource(Resource):
|
|
|
109
109
|
name: task_id
|
|
110
110
|
required: True
|
|
111
111
|
type: string
|
|
112
|
-
format:
|
|
113
|
-
|
|
112
|
+
format: uuid
|
|
113
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
114
114
|
- in: path
|
|
115
115
|
name: comment_id
|
|
116
116
|
required: True
|
|
117
117
|
type: string
|
|
118
|
-
format:
|
|
119
|
-
|
|
118
|
+
format: uuid
|
|
119
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
120
120
|
responses:
|
|
121
121
|
200:
|
|
122
122
|
description: Comment acknowledged
|
|
@@ -148,8 +148,8 @@ class CommentTaskResource(Resource):
|
|
|
148
148
|
name: task_id
|
|
149
149
|
required: True
|
|
150
150
|
type: string
|
|
151
|
-
format:
|
|
152
|
-
|
|
151
|
+
format: uuid
|
|
152
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
153
153
|
- in: body
|
|
154
154
|
name: Comment
|
|
155
155
|
description: person ID, name, comment, revision and change status of task
|
|
@@ -160,13 +160,13 @@ class CommentTaskResource(Resource):
|
|
|
160
160
|
properties:
|
|
161
161
|
task_status_id:
|
|
162
162
|
type: string
|
|
163
|
-
format:
|
|
163
|
+
format: uuid
|
|
164
164
|
example: a24a6ea4-ce75-4665-a070-57453082c25a4-ce75-4665-a070-57453082c25
|
|
165
165
|
comment:
|
|
166
166
|
type: string
|
|
167
167
|
person_id:
|
|
168
168
|
type: string
|
|
169
|
-
format:
|
|
169
|
+
format: uuid
|
|
170
170
|
example: a24a6ea4-ce75-4665-a070-57453082c25a4-ce75-4665-a070-57453082c25
|
|
171
171
|
created_at:
|
|
172
172
|
type: string
|
|
@@ -268,20 +268,20 @@ class AttachmentResource(Resource):
|
|
|
268
268
|
name: task_id
|
|
269
269
|
required: True
|
|
270
270
|
type: string
|
|
271
|
-
format:
|
|
272
|
-
|
|
271
|
+
format: uuid
|
|
272
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
273
273
|
- in: path
|
|
274
274
|
name: comment_id
|
|
275
275
|
required: True
|
|
276
276
|
type: string
|
|
277
|
-
format:
|
|
278
|
-
|
|
277
|
+
format: uuid
|
|
278
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
279
279
|
- in: path
|
|
280
280
|
name: attachment_id
|
|
281
281
|
required: True
|
|
282
282
|
type: string
|
|
283
|
-
format:
|
|
284
|
-
|
|
283
|
+
format: uuid
|
|
284
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
285
285
|
responses:
|
|
286
286
|
204:
|
|
287
287
|
description: Empty response
|
|
@@ -314,14 +314,21 @@ class AddAttachmentToCommentResource(Resource):
|
|
|
314
314
|
name: task_id
|
|
315
315
|
required: True
|
|
316
316
|
type: string
|
|
317
|
-
format:
|
|
318
|
-
|
|
317
|
+
format: uuid
|
|
318
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
319
319
|
- in: path
|
|
320
320
|
name: comment_id
|
|
321
321
|
required: True
|
|
322
322
|
type: string
|
|
323
|
-
format:
|
|
324
|
-
|
|
323
|
+
format: uuid
|
|
324
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
325
|
+
- in: formData
|
|
326
|
+
name: reply_id
|
|
327
|
+
type: uuid
|
|
328
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
329
|
+
required: True
|
|
330
|
+
format: uuid
|
|
331
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
325
332
|
- in: formData
|
|
326
333
|
name: files
|
|
327
334
|
type: file
|
|
@@ -337,7 +344,9 @@ class AddAttachmentToCommentResource(Resource):
|
|
|
337
344
|
user_service.check_manager_project_access(task["project_id"])
|
|
338
345
|
|
|
339
346
|
files = request.files
|
|
340
|
-
comment = comments_service.add_attachments_to_comment(
|
|
347
|
+
comment = comments_service.add_attachments_to_comment(
|
|
348
|
+
comment, files, reply_id=None
|
|
349
|
+
)
|
|
341
350
|
return comment["attachment_files"], 201
|
|
342
351
|
|
|
343
352
|
|
|
@@ -364,8 +373,8 @@ class CommentManyTasksResource(Resource):
|
|
|
364
373
|
name: project_id
|
|
365
374
|
required: True
|
|
366
375
|
type: string
|
|
367
|
-
format:
|
|
368
|
-
|
|
376
|
+
format: uuid
|
|
377
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
369
378
|
- in: body
|
|
370
379
|
name: Comment
|
|
371
380
|
description: person ID, name, comment, revision and change status of task
|
|
@@ -376,17 +385,17 @@ class CommentManyTasksResource(Resource):
|
|
|
376
385
|
properties:
|
|
377
386
|
task_status_id:
|
|
378
387
|
type: string
|
|
379
|
-
format:
|
|
388
|
+
format: uuid
|
|
380
389
|
example: a24a6ea4-ce75-4665-a070-57453082c25a4-ce75-4665-a070-57453082c25
|
|
381
390
|
comment:
|
|
382
391
|
type: string
|
|
383
392
|
person_id:
|
|
384
393
|
type: string
|
|
385
|
-
format:
|
|
394
|
+
format: uuid
|
|
386
395
|
example: a24a6ea4-ce75-4665-a070-57453082c25a4-ce75-4665-a070-57453082c25
|
|
387
396
|
object_id:
|
|
388
397
|
type: string
|
|
389
|
-
format:
|
|
398
|
+
format: uuid
|
|
390
399
|
example: a24a6ea4-ce75-4665-a070-57453082c25a4-ce75-4665-a070-57453082c25
|
|
391
400
|
created_at:
|
|
392
401
|
type: string
|
|
@@ -471,28 +480,22 @@ class ReplyCommentResource(Resource, ArgsMixin):
|
|
|
471
480
|
name: task_id
|
|
472
481
|
required: True
|
|
473
482
|
type: string
|
|
474
|
-
format:
|
|
475
|
-
|
|
483
|
+
format: uuid
|
|
484
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
476
485
|
- in: path
|
|
477
486
|
name: comment_id
|
|
478
487
|
required: True
|
|
479
488
|
type: string
|
|
480
|
-
format:
|
|
481
|
-
|
|
489
|
+
format: uuid
|
|
490
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
482
491
|
- in: formData
|
|
483
492
|
name: text
|
|
484
493
|
type: string
|
|
485
|
-
|
|
494
|
+
example: comment
|
|
486
495
|
responses:
|
|
487
496
|
200:
|
|
488
497
|
description: Reply to given comment
|
|
489
498
|
"""
|
|
490
|
-
args = self.get_args(
|
|
491
|
-
[
|
|
492
|
-
("text", "", False),
|
|
493
|
-
]
|
|
494
|
-
)
|
|
495
|
-
|
|
496
499
|
comment = tasks_service.get_comment(comment_id)
|
|
497
500
|
current_user = persons_service.get_current_user()
|
|
498
501
|
if comment["person_id"] != current_user["id"]:
|
|
@@ -500,7 +503,17 @@ class ReplyCommentResource(Resource, ArgsMixin):
|
|
|
500
503
|
raise permissions.PermissionDenied()
|
|
501
504
|
user_service.check_task_action_access(task_id)
|
|
502
505
|
|
|
503
|
-
|
|
506
|
+
args = self.get_args(
|
|
507
|
+
[
|
|
508
|
+
("text", "", False),
|
|
509
|
+
]
|
|
510
|
+
)
|
|
511
|
+
files = request.files
|
|
512
|
+
return comments_service.reply_comment(
|
|
513
|
+
comment_id,
|
|
514
|
+
args["text"],
|
|
515
|
+
files=files
|
|
516
|
+
)
|
|
504
517
|
|
|
505
518
|
|
|
506
519
|
class DeleteReplyCommentResource(Resource):
|
|
@@ -520,20 +533,20 @@ class DeleteReplyCommentResource(Resource):
|
|
|
520
533
|
name: task_id
|
|
521
534
|
required: True
|
|
522
535
|
type: string
|
|
523
|
-
format:
|
|
524
|
-
|
|
536
|
+
format: uuid
|
|
537
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
525
538
|
- in: path
|
|
526
539
|
name: comment_id
|
|
527
540
|
required: True
|
|
528
541
|
type: string
|
|
529
|
-
format:
|
|
530
|
-
|
|
542
|
+
format: uuid
|
|
543
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
531
544
|
- in: path
|
|
532
545
|
name: reply_id
|
|
533
546
|
required: True
|
|
534
547
|
type: string
|
|
535
|
-
format:
|
|
536
|
-
|
|
548
|
+
format: uuid
|
|
549
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
537
550
|
responses:
|
|
538
551
|
200:
|
|
539
552
|
description: Given comment reply deleted
|
|
@@ -558,8 +571,8 @@ class ProjectAttachmentFiles(Resource):
|
|
|
558
571
|
name: project_id
|
|
559
572
|
required: True
|
|
560
573
|
type: string
|
|
561
|
-
format:
|
|
562
|
-
|
|
574
|
+
format: uuid
|
|
575
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
563
576
|
responses:
|
|
564
577
|
200:
|
|
565
578
|
description: All attachment files related to given project
|
|
@@ -587,8 +600,8 @@ class TaskAttachmentFiles(Resource):
|
|
|
587
600
|
name: task_id
|
|
588
601
|
required: True
|
|
589
602
|
type: string
|
|
590
|
-
format:
|
|
591
|
-
|
|
603
|
+
format: uuid
|
|
604
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
592
605
|
responses:
|
|
593
606
|
200:
|
|
594
607
|
description: All attachment files related to given task
|
|
@@ -28,8 +28,8 @@ class ConceptResource(Resource, ArgsMixin):
|
|
|
28
28
|
name: concept_id
|
|
29
29
|
required: True
|
|
30
30
|
type: string
|
|
31
|
-
format:
|
|
32
|
-
|
|
31
|
+
format: uuid
|
|
32
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
33
33
|
responses:
|
|
34
34
|
200:
|
|
35
35
|
description: Given concept
|
|
@@ -56,8 +56,8 @@ class ConceptResource(Resource, ArgsMixin):
|
|
|
56
56
|
name: concept_id
|
|
57
57
|
required: True
|
|
58
58
|
type: string
|
|
59
|
-
format:
|
|
60
|
-
|
|
59
|
+
format: uuid
|
|
60
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
61
61
|
responses:
|
|
62
62
|
204:
|
|
63
63
|
description: Given concept deleted
|
|
@@ -86,14 +86,14 @@ class AllConceptsResource(Resource):
|
|
|
86
86
|
name: project_id
|
|
87
87
|
required: False
|
|
88
88
|
type: string
|
|
89
|
-
format:
|
|
90
|
-
|
|
89
|
+
format: uuid
|
|
90
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
91
91
|
- in: query
|
|
92
92
|
name: parent_id
|
|
93
93
|
required: False
|
|
94
94
|
type: string
|
|
95
|
-
format:
|
|
96
|
-
|
|
95
|
+
format: uuid
|
|
96
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
97
97
|
responses:
|
|
98
98
|
200:
|
|
99
99
|
description: All concept entries
|
|
@@ -121,8 +121,8 @@ class ConceptTaskTypesResource(Resource):
|
|
|
121
121
|
name: concept_id
|
|
122
122
|
required: True
|
|
123
123
|
type: string
|
|
124
|
-
format:
|
|
125
|
-
|
|
124
|
+
format: uuid
|
|
125
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
126
126
|
responses:
|
|
127
127
|
200:
|
|
128
128
|
description: All task types related to given concept
|
|
@@ -148,8 +148,8 @@ class ConceptTasksResource(Resource, ArgsMixin):
|
|
|
148
148
|
name: concept_id
|
|
149
149
|
required: True
|
|
150
150
|
type: string
|
|
151
|
-
format:
|
|
152
|
-
|
|
151
|
+
format: uuid
|
|
152
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
153
153
|
responses:
|
|
154
154
|
200:
|
|
155
155
|
description: All tasks related to given concept
|
|
@@ -180,8 +180,8 @@ class ConceptPreviewsResource(Resource):
|
|
|
180
180
|
name: concept_id
|
|
181
181
|
required: True
|
|
182
182
|
type: string
|
|
183
|
-
format:
|
|
184
|
-
|
|
183
|
+
format: uuid
|
|
184
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
185
185
|
responses:
|
|
186
186
|
200:
|
|
187
187
|
description: All previews related to given episode
|
|
@@ -207,8 +207,8 @@ class ConceptsAndTasksResource(Resource):
|
|
|
207
207
|
name: project_id
|
|
208
208
|
required: False
|
|
209
209
|
type: string
|
|
210
|
-
format:
|
|
211
|
-
|
|
210
|
+
format: uuid
|
|
211
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
212
212
|
responses:
|
|
213
213
|
200:
|
|
214
214
|
description: All concepts
|
|
@@ -236,8 +236,8 @@ class ProjectConceptsResource(Resource, ArgsMixin):
|
|
|
236
236
|
name: project_id
|
|
237
237
|
required: True
|
|
238
238
|
type: string
|
|
239
|
-
format:
|
|
240
|
-
|
|
239
|
+
format: uuid
|
|
240
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
241
241
|
responses:
|
|
242
242
|
200:
|
|
243
243
|
description: All concepts related to given project
|
|
@@ -265,21 +265,21 @@ class ProjectConceptsResource(Resource, ArgsMixin):
|
|
|
265
265
|
name: project_id
|
|
266
266
|
required: True
|
|
267
267
|
type: string
|
|
268
|
-
format:
|
|
269
|
-
|
|
268
|
+
format: uuid
|
|
269
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
270
270
|
- in: formData
|
|
271
271
|
name: name
|
|
272
272
|
required: True
|
|
273
273
|
type: string
|
|
274
|
-
|
|
274
|
+
example: Name of concept
|
|
275
275
|
- in: formData
|
|
276
276
|
name: description
|
|
277
277
|
type: string
|
|
278
|
-
|
|
278
|
+
example: Description of concept
|
|
279
279
|
- in: formData
|
|
280
280
|
name: entity_concept_links
|
|
281
281
|
type: list of UUIDs
|
|
282
|
-
|
|
282
|
+
example: ["a24a6ea4-ce75-4665-a070-57453082c25"]
|
|
283
283
|
responses:
|
|
284
284
|
201:
|
|
285
285
|
description: Concept created for given project
|