-
Notifications
You must be signed in to change notification settings - Fork 8
/
TaskList Public GraphQL API.postman_collection.json
267 lines (267 loc) · 9.17 KB
/
TaskList Public GraphQL API.postman_collection.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
{
"info": {
"_postman_id": "6394943f-b57c-4c04-acf9-391a8614103b",
"name": "TaskList Public GraphQL API",
"description": "# Manage Tasks via API.\n\n## What do you need to make it work?\n\n1. You need to get JWT access token from Tasklist to authenticate. To retrieve an access token for the Tasklist API client go to: [https://docs.camunda.io/docs/self-managed/tasklist-deployment/configuration/](https://docs.camunda.io/docs/self-managed/tasklist-deployment/configuration/)\n \n\nand run in terminal:\n\nPlain Text\n\n``` bash\ncurl -X POST -H 'content-type: application/json' -d '{\"client_id\": \"RgVdPv...\", \"client_secret\":\"eDS1~Hg...\",\"audience\":\"tasklist.camunda.io\",\"grant_type\":\"client_credentials\"}' https://login.cloud.camunda.io/oauth/token\n\n```\n\n2\\. In environment variables set:\n\n* baseUrlTasklist - URL of your Tasklist - in form like \n [https://bru-2.tasklist.camunda.io/{{clusterID}}](https://bru-2.tasklist.camunda.io/{{clusterID}})\n* clusterID - you can get that from your Cluster Details\n* barerTokenTasklist - set to the Token that you get from the curl described in the guide above\n* apiVersion - currently default is v1",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "mutations",
"item": [
{
"name": "completeTask",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "graphql",
"graphql": {
"query": "mutation completeTask ($taskId: String!, $variables: [VariableInput!]!) {\n completeTask (taskId: $taskId, variables: $variables) {\n id\n name\n taskDefinitionId\n processName\n creationTime\n completionTime\n assignee\n variables {\n id\n name\n value\n previewValue\n isValueTruncated\n }\n taskState\n sortValues\n isFirst\n formKey\n processDefinitionId\n candidateGroups\n }\n}",
"variables": "{\n \"taskId\": \"\",\n \"variables\": {\n \"name\": \"\",\n \"value\": \"\"\n }\n}"
}
},
"url": {
"raw": "{{url}}",
"host": [
"{{url}}"
]
}
},
"response": []
},
{
"name": "claimTask",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "graphql",
"graphql": {
"query": "mutation claimTask ($taskId: String!, $assignee: String) {\n claimTask (taskId: $taskId, assignee: $assignee) {\n id\n name\n taskDefinitionId\n processName\n creationTime\n completionTime\n assignee\n variables {\n id\n name\n value\n previewValue\n isValueTruncated\n }\n taskState\n sortValues\n isFirst\n formKey\n processDefinitionId\n candidateGroups\n }\n}",
"variables": "{\n \"taskId\": \"\",\n \"assignee\": \"\"\n}"
}
},
"url": {
"raw": "{{url}}",
"host": [
"{{url}}"
]
}
},
"response": []
},
{
"name": "unclaimTask",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "graphql",
"graphql": {
"query": "mutation unclaimTask ($taskId: String!) {\n unclaimTask (taskId: $taskId) {\n id\n name\n taskDefinitionId\n processName\n creationTime\n completionTime\n assignee\n variables {\n id\n name\n value\n previewValue\n isValueTruncated\n }\n taskState\n sortValues\n isFirst\n formKey\n processDefinitionId\n candidateGroups\n }\n}",
"variables": "{\n \"taskId\": \"\"\n}"
}
},
"url": {
"raw": "{{url}}",
"host": [
"{{url}}"
]
}
},
"response": []
},
{
"name": "deleteProcessInstance",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "graphql",
"graphql": {
"query": "mutation deleteProcessInstance ($processInstanceId: String!) {\n deleteProcessInstance (processInstanceId: $processInstanceId)\n}",
"variables": "{\n \"processInstanceId\": \"\"\n}"
}
},
"url": {
"raw": "{{url}}",
"host": [
"{{url}}"
]
}
},
"response": []
}
]
},
{
"name": "queries",
"item": [
{
"name": "tasks",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "graphql",
"graphql": {
"query": "query tasks ($query: TaskQuery!) {\n tasks (query: $query) {\n id\n name\n taskDefinitionId\n processName\n creationTime\n completionTime\n assignee\n variables {\n id\n name\n value\n previewValue\n isValueTruncated\n }\n taskState\n sortValues\n isFirst\n formKey\n processDefinitionId\n candidateGroups\n }\n}",
"variables": "{\n \"query\": {\n \"state\": \"\",\n \"assigned\": true,\n \"assignee\": \"\",\n \"candidateGroup\": \"\",\n \"pageSize\": 0,\n \"taskDefinitionId\": \"\",\n \"searchAfter\": [\n \"\"\n ],\n \"searchAfterOrEqual\": [\n \"\"\n ],\n \"searchBefore\": [\n \"\"\n ],\n \"searchBeforeOrEqual\": [\n \"\"\n ]\n }\n}"
}
},
"url": {
"raw": "{{url}}",
"host": [
"{{url}}"
]
}
},
"response": []
},
{
"name": "task",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "graphql",
"graphql": {
"query": "query task ($id: String!) {\n task (id: $id) {\n id\n name\n taskDefinitionId\n processName\n creationTime\n completionTime\n assignee\n variables {\n id\n name\n value\n previewValue\n isValueTruncated\n }\n taskState\n sortValues\n isFirst\n formKey\n processDefinitionId\n candidateGroups\n }\n}",
"variables": "{\n \"id\": \"\"\n}"
}
},
"url": {
"raw": "{{url}}",
"host": [
"{{url}}"
]
}
},
"response": []
},
{
"name": "currentUser",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "graphql",
"graphql": {
"query": "query currentUser {\n currentUser {\n userId\n displayName\n permissions\n }\n}",
"variables": "{}"
}
},
"url": {
"raw": "{{url}}",
"host": [
"{{url}}"
]
}
},
"response": []
},
{
"name": "form",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "graphql",
"graphql": {
"query": "query form ($id: String!, $processDefinitionId: String!) {\n form (id: $id, processDefinitionId: $processDefinitionId) {\n id\n processDefinitionId\n schema\n }\n}",
"variables": "{\n \"id\": \"\",\n \"processDefinitionId\": \"\"\n}"
}
},
"url": {
"raw": "{{url}}",
"host": [
"{{url}}"
]
}
},
"response": []
},
{
"name": "variables",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "graphql",
"graphql": {
"query": "query variables ($taskId: String!, $variableNames: [String!]!) {\n variables (taskId: $taskId, variableNames: $variableNames) {\n id\n name\n value\n previewValue\n isValueTruncated\n }\n}",
"variables": "{\n \"taskId\": \"\",\n \"variableNames\": [\n \"\"\n ]\n}"
}
},
"url": {
"raw": "{{url}}",
"host": [
"{{url}}"
]
}
},
"response": []
},
{
"name": "variable",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "graphql",
"graphql": {
"query": "query variable ($id: String!) {\n variable (id: $id) {\n id\n name\n value\n previewValue\n isValueTruncated\n }\n}",
"variables": "{\n \"id\": \"\"\n}"
}
},
"url": {
"raw": "{{url}}",
"host": [
"{{url}}"
]
}
},
"response": []
}
]
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{barerTokenTasklist}}",
"type": "string"
}
]
},
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
}
],
"variable": [
{
"key": "url",
"value": "{{baseUrlTasklist}}",
"type": "any"
}
]
}