forked from Asana/python-asana
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.json
86 lines (86 loc) · 5.67 KB
/
api.json
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
{
"resources": {
"attachments": {
"methods": {
"find_by_id": { "method": "get", "url": "/attachments/%s", "args": ["attachment_id"] },
"find_by_task": { "method": "get", "url": "/tasks/%s/attachments", "args": ["task_id"], "collection": true }
}
},
"events": {
"methods": {
"get": { "method": "get", "url": "/events", "dispatch_options": { "full_payload": true } }
}
},
"projects": {
"methods": {
"create": { "method": "post", "url": "/projects" },
"create_in_workspace": { "method": "post", "url": "/workspaces/%s/projects", "args": ["workspace_id"] },
"find_by_id": { "method": "get", "url": "/projects/%s", "args": ["project_id"] },
"find_all": { "method": "get", "url": "/projects", "collection": true },
"find_by_workspace": { "method": "get", "url": "/workspaces/%s/projects", "args": ["workspace_id"], "collection": true },
"update": { "method": "put", "url": "/projects/%s", "args": ["project_id"] },
"delete": { "method": "delete", "url": "/projects/%s", "args": ["project_id"] }
}
},
"stories": {
"methods": {
"create_on_task": { "method": "post", "url": "/tasks/%s/stories", "args": ["task_id"] },
"find_by_id": { "method": "get", "url": "/stories/%s", "args": ["story_id"] },
"find_by_task": { "method": "get", "url": "/tasks/%s/stories", "args": ["task_id"], "collection": true }
}
},
"tags": {
"methods": {
"create": { "method": "post", "url": "/tags" },
"create_in_workspace": { "method": "post", "url": "/workspaces/%s/tags", "args": ["workspace_id"] },
"find_by_id": { "method": "get", "url": "/tags/%s", "args": ["tag_id"] },
"find_all": { "method": "get", "url": "/tags", "collection": true },
"find_by_workspace": { "method": "get", "url": "/workspaces/%s/tags", "args": ["workspace_id"], "collection": true },
"update": { "method": "put", "url": "/tags/%s", "args": ["tag_id"] }
}
},
"tasks": {
"methods": {
"create": { "method": "post", "url": "/tasks" },
"create_in_workspace": { "method": "post", "url": "/workspaces/%s/tasks", "args": ["workspace_id"] },
"find_by_id": { "method": "get", "url": "/tasks/%s", "args": ["task_id"] },
"find_all": { "method": "get", "url": "/tasks", "collection": true },
"find_by_project": { "method": "get", "url": "/projects/%s/tasks", "args": ["project_id"], "collection": true },
"find_by_tag": { "method": "get", "url": "/tags/%s/tasks", "args": ["tag_id"], "collection": true },
"update": { "method": "put", "url": "/tasks/%s", "args": ["task_id"] },
"delete": { "method": "delete", "url": "/tasks/%s", "args": ["task_id"] },
"add_followers": { "method": "post", "url": "/tasks/%s/addFollowers", "args": ["task_id"] },
"remove_followers": { "method": "post", "url": "/tasks/%s/removeFollowers", "args": ["task_id"] },
"projects": { "method": "get", "url": "/tasks/%s/projects", "args": ["task_id"], "collection": true },
"add_project": { "method": "post", "url": "/tasks/%s/addProject", "args": ["task_id"] },
"remove_project": { "method": "post", "url": "/tasks/%s/removeProject", "args": ["task_id"] },
"tags": { "method": "get", "url": "/tasks/%s/tags", "args": ["task_id"], "collection": true },
"add_tag": { "method": "post", "url": "/tasks/%s/addTag", "args": ["task_id"] },
"remove_tag": { "method": "post", "url": "/tasks/%s/removeTag", "args": ["task_id"] },
"subtasks": { "method": "get", "url": "/tasks/%s/subtasks", "args": ["task_id"], "collection": true },
"add_subtask": { "method": "post", "url": "/tasks/%s/subtasks", "args": ["task_id"] },
"set_parent": { "method": "post", "url": "/tasks/%s/setParent", "args": ["task_id"] }
}
},
"teams": {
"methods": {
"find_by_organization": { "method": "get", "url": "/organizations/%s/teams", "args": ["organization_id"], "collection": true }
}
},
"users": {
"methods": {
"find_all": { "method": "get", "url": "/users", "collection": true },
"me": { "method": "get", "url": "/users/me" },
"find_by_id": { "method": "get", "url": "/users/%s", "args": ["user_id"] },
"find_by_workspace": { "method": "get", "url": "/workspaces/%s/users", "args": ["workspace_id"], "collection": true }
}
},
"workspaces": {
"methods": {
"find_all": { "method": "get", "url": "/workspaces", "collection": true },
"update": { "method": "put", "url": "/workspaces/%s", "args": ["workspace_id"] },
"typeahead": { "method": "get", "url": "/workspaces/%s/typeahead", "args": ["workspace_id"], "collection": true }
}
}
}
}