1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
class ProjectBoardBase:
"""
A project board is a unit of delivery for a project. Each board will have a set of tasks assigned to a user.
"""
# create a board
def create_board(self, request: str):
"""
:param request: A json string with the board details.
{
"name" : "<board_name>",
"description" : "<description>",
"team_id" : "<team id>"
"creation_time" : "<date:time when board was created>"
}
:return: A json string with the response {"id" : "<board_id>"}
Constraint:
* board name must be unique for a team
* board name can be max 64 characters
* description can be max 128 characters
"""
pass
# close a board
def close_board(self, request: str) -> str:
"""
:param request: A json string with the user details
{
"id" : "<board_id>"
}
:return:
Constraint:
* Set the board status to CLOSED and record the end_time date:time
* You can only close boards with all tasks marked as COMPLETE
"""
pass
# add task to board
def add_task(self, request: str) -> str:
"""
:param request: A json string with the task details. Task is assigned to a user_id who works on the task
{
"title" : "<board_name>",
"description" : "<description>",
"user_id" : "<team id>"
"creation_time" : "<date:time when task was created>"
}
:return: A json string with the response {"id" : "<task_id>"}
Constraint:
* task title must be unique for a board
* title name can be max 64 characters
* description can be max 128 characters
Constraints:
* Can only add task to an OPEN board
"""
pass
# update the status of a task
def update_task_status(self, request: str):
"""
:param request: A json string with the user details
{
"id" : "<task_id>",
"status" : "OPEN | IN_PROGRESS | COMPLETE"
}
"""
pass
# list all open boards for a team
def list_boards(self, request: str) -> str:
"""
:param request: A json string with the team identifier
{
"id" : "<team_id>"
}
:return:
[
{
"id" : "<board_id>",
"name" : "<board_name>"
}
]
"""
pass
def export_board(self, request: str) -> str:
"""
Export a board in the out folder. The output will be a txt file.
We want you to be creative. Output a presentable view of the board and its tasks with the available data.
:param request:
{
"id" : "<board_id>"
}
:return:
{
"out_file" : "<name of the file created>"
}
"""
pass
|