forked from instructure/pandarus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccount_reports.json
348 lines (346 loc) · 9.83 KB
/
account_reports.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
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
{
"apiVersion": "1.0",
"swaggerVersion": "1.2",
"basePath": "https://canvas.instructure.com/api",
"resourcePath": "/account_reports",
"produces": [
"application/json"
],
"apis": [
{
"path": "/v1/accounts/{account_id}/reports",
"description": "Returns a paginated list of reports for the current context.",
"operations": [
{
"method": "GET",
"summary": "List Available Reports",
"notes": "Returns a paginated list of reports for the current context.",
"nickname": "list_available_reports",
"parameters": [
{
"paramType": "path",
"name": "account_id",
"description": "ID",
"type": "string",
"format": null,
"required": true
}
],
"type": "void"
}
]
},
{
"path": "/v1/accounts/{account_id}/reports/{report}",
"description": "Generates a report instance for the account.",
"operations": [
{
"method": "POST",
"summary": "Start a Report",
"notes": "Generates a report instance for the account.",
"nickname": "start_report",
"parameters": [
{
"paramType": "path",
"name": "account_id",
"description": "ID",
"type": "string",
"format": null,
"required": true
},
{
"paramType": "path",
"name": "report",
"description": "ID",
"type": "string",
"format": null,
"required": true
},
{
"paramType": "form",
"name": "[parameters]",
"description": "The parameters will vary for each report",
"type": "string",
"format": null,
"required": false
}
],
"type": "Report"
}
]
},
{
"path": "/v1/accounts/{account_id}/reports/{report}",
"description": "Shows all reports that have been run for the account of a specific type.",
"operations": [
{
"method": "GET",
"summary": "Index of Reports",
"notes": "Shows all reports that have been run for the account of a specific type.",
"nickname": "index_of_reports",
"parameters": [
{
"paramType": "path",
"name": "account_id",
"description": "ID",
"type": "string",
"format": null,
"required": true
},
{
"paramType": "path",
"name": "report",
"description": "ID",
"type": "string",
"format": null,
"required": true
}
],
"type": "array",
"items": {
"$ref": "Report"
}
}
]
},
{
"path": "/v1/accounts/{account_id}/reports/{report}/{id}",
"description": "Returns the status of a report.",
"operations": [
{
"method": "GET",
"summary": "Status of a Report",
"notes": "Returns the status of a report.",
"nickname": "status_of_report",
"parameters": [
{
"paramType": "path",
"name": "account_id",
"description": "ID",
"type": "string",
"format": null,
"required": true
},
{
"paramType": "path",
"name": "report",
"description": "ID",
"type": "string",
"format": null,
"required": true
},
{
"paramType": "path",
"name": "id",
"description": "ID",
"type": "string",
"format": null,
"required": true
}
],
"type": "Report"
}
]
},
{
"path": "/v1/accounts/{account_id}/reports/{report}/{id}",
"description": "Deletes a generated report instance.",
"operations": [
{
"method": "DELETE",
"summary": "Delete a Report",
"notes": "Deletes a generated report instance.",
"nickname": "delete_report",
"parameters": [
{
"paramType": "path",
"name": "account_id",
"description": "ID",
"type": "string",
"format": null,
"required": true
},
{
"paramType": "path",
"name": "report",
"description": "ID",
"type": "string",
"format": null,
"required": true
},
{
"paramType": "path",
"name": "id",
"description": "ID",
"type": "string",
"format": null,
"required": true
}
],
"type": "Report"
}
]
}
],
"models": {
"Report": {
"id": "Report",
"description": "",
"required": [
],
"properties": {
"id": {
"description": "The unique identifier for the report.",
"example": "1",
"type": "integer"
},
"report": {
"description": "The type of report.",
"example": "sis_export_csv",
"type": "string"
},
"file_url": {
"description": "The url to the report download.",
"example": "https://example.com/some/path",
"type": "string"
},
"attachment": {
"description": "The attachment api object of the report. Only available after the report has completed.",
"$ref": "File"
},
"status": {
"description": "The status of the report",
"example": "complete",
"type": "string"
},
"parameters": {
"description": "The report parameters",
"example": {
"course_id": 2,
"start_at": "2012-07-13T10:55:20-06:00",
"end_at": "2012-07-13T10:55:20-06:00"
},
"$ref": "ReportParameters"
},
"progress": {
"description": "The progress of the report",
"example": "100",
"type": "integer"
},
"current_line": {
"description": "This is the current line count being written to the report. It updates every 1000 records.",
"example": "12000",
"type": "integer"
}
}
},
"ReportParameters": {
"id": "ReportParameters",
"description": "The parameters returned will vary for each report.",
"required": [
],
"properties": {
"enrollment_term_id": {
"description": "The canvas id of the term to get grades from",
"example": 2,
"type": "integer"
},
"include_deleted": {
"description": "Include deleted objects",
"example": false,
"type": "boolean"
},
"course_id": {
"description": "The course to report on",
"example": 2,
"type": "integer"
},
"order": {
"description": "The sort order for the csv, Options: 'users', 'courses', 'outcomes'.",
"example": "users",
"type": "string",
"allowableValues": {
"values": [
"users",
"courses",
"outcomes"
]
}
},
"users": {
"description": "Get the data for users",
"example": false,
"type": "boolean"
},
"accounts": {
"description": "Get the data for accounts",
"example": false,
"type": "boolean"
},
"terms": {
"description": "Get the data for terms",
"example": false,
"type": "boolean"
},
"courses": {
"description": "Get the data for courses",
"example": false,
"type": "boolean"
},
"sections": {
"description": "Get the data for sections",
"example": false,
"type": "boolean"
},
"enrollments": {
"description": "Get the data for enrollments",
"example": false,
"type": "boolean"
},
"groups": {
"description": "Get the data for groups",
"example": false,
"type": "boolean"
},
"xlist": {
"description": "Get the data for cross-listed courses",
"example": false,
"type": "boolean"
},
"sis_terms_csv": {
"example": 1,
"type": "integer"
},
"sis_accounts_csv": {
"example": 1,
"type": "integer"
},
"include_enrollment_state": {
"description": "Include enrollment state. Defaults to false",
"example": false,
"type": "boolean"
},
"enrollment_state": {
"description": "Include enrollment state. Defaults to 'all' Options: ['active'| 'invited'| 'creation_pending'| 'deleted'| 'rejected'| 'completed'| 'inactive'| 'all']",
"example": [
"all"
],
"type": "array",
"items": {
"type": "string"
}
},
"start_at": {
"description": "The beginning date for submissions. Max time range is 2 weeks.",
"example": "2012-07-13T10:55:20-06:00",
"type": "datetime"
},
"end_at": {
"description": "The end date for submissions. Max time range is 2 weeks.",
"example": "2012-07-13T10:55:20-06:00",
"type": "datetime"
}
}
}
}
}