1f039c4cda
Add swagger docs Add integration tests Add tests Add task comment test fixtures Add config option to enable/disable task comments Add custom error if a task comment does not exist Fix lint Add getting author when getting a single comment Fix getting comments/comments author Add rights check to ReadAll + actually get the comment author Add migration and table definitions Add routes Add ReadOne method Add basic crud rights Signed-off-by: kolaente <k@knt.li> Implement basic crudable functions for task comments Signed-off-by: kolaente <k@knt.li> Start adding task comments Signed-off-by: kolaente <k@knt.li> Co-authored-by: kolaente <k@knt.li> Reviewed-on: https://kolaente.dev/vikunja/api/pulls/138
84 lines
1.4 KiB
YAML
84 lines
1.4 KiB
YAML
- id: 1
|
|
comment: Lorem Ipsum Dolor Sit Amet
|
|
author_id: 1
|
|
task_id: 1
|
|
created: 1582135626
|
|
updated: 1582135626
|
|
- id: 2
|
|
comment: comment 2
|
|
author_id: 5
|
|
task_id: 14
|
|
created: 1582135626
|
|
updated: 1582135626
|
|
- id: 3
|
|
comment: comment 3
|
|
author_id: 5
|
|
task_id: 15
|
|
created: 1582135626
|
|
updated: 1582135626
|
|
- id: 4
|
|
comment: comment 4
|
|
author_id: 6
|
|
task_id: 16
|
|
created: 1582135626
|
|
updated: 1582135626
|
|
- id: 5
|
|
comment: comment 5
|
|
author_id: 6
|
|
task_id: 17
|
|
created: 1582135626
|
|
updated: 1582135626
|
|
- id: 6
|
|
comment: comment 6
|
|
author_id: 6
|
|
task_id: 18
|
|
created: 1582135626
|
|
updated: 1582135626
|
|
- id: 7
|
|
comment: comment 7
|
|
author_id: 6
|
|
task_id: 19
|
|
created: 1582135626
|
|
updated: 1582135626
|
|
- id: 8
|
|
comment: comment 8
|
|
author_id: 6
|
|
task_id: 20
|
|
created: 1582135626
|
|
updated: 1582135626
|
|
- id: 9
|
|
comment: comment 9
|
|
author_id: 6
|
|
task_id: 21
|
|
created: 1582135626
|
|
updated: 1582135626
|
|
- id: 10
|
|
comment: comment 10
|
|
author_id: 6
|
|
task_id: 22
|
|
created: 1582135626
|
|
updated: 1582135626
|
|
- id: 11
|
|
comment: comment 11
|
|
author_id: 6
|
|
task_id: 23
|
|
created: 1582135626
|
|
updated: 1582135626
|
|
- id: 12
|
|
comment: comment 12
|
|
author_id: 6
|
|
task_id: 24
|
|
created: 1582135626
|
|
updated: 1582135626
|
|
- id: 13
|
|
comment: comment 13
|
|
author_id: 6
|
|
task_id: 25
|
|
created: 1582135626
|
|
updated: 1582135626
|
|
- id: 14
|
|
comment: comment 14
|
|
author_id: 6
|
|
task_id: 26
|
|
created: 1582135626
|
|
updated: 1582135626
|