forked from alaress/schoolbox-api-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathassessment.yaml
137 lines (134 loc) · 4.82 KB
/
assessment.yaml
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
get:
operationId: assessmentSearch
tags: [assessment]
summary: Get a list of assessments
description: |
This endpoint will return assessments and their results that match the filter provided.
The number of assessments returned is 5 by default, if the limit query parameter is not provided.
We strongly recommend the use of due date filters, to ensure you only get relevant assessments from the current period.
For example a common request may be to get assessments of work type 'major' that are due in the current year.
The endpoint is only available to superusers.
responses:
'200':
$ref: ../components/responses/assessment-list.yaml
default:
$ref: ../components/responses/problem.yaml
parameters:
- name: filter
in: query
required: true
description: |
Json encoded object of fields and values to filter assessments on. \
For example, to get assessment with ID 676: \
`filter=%7b%22assessmentId%22%3a676%7d`
Filter string to filter on all the fields would look like: \
`{"assessmentId": 256,"title": "English 3/4 [Final]","assessmentType": "dueWork","folder": {id: 80},"weighted": false,"workType": {"id": 1,"name": "Formative Assessment"},"dueDate": {"from": "2017-10-12T14:20:50+10:00","to": "2019-10-12T14:20:50+10:00"},"yearLevel": {"id": 6,"name": "Year 6"}}`
schema:
type: object
properties:
assessmentId:
description: |
The ID of the assessment to search.
type: integer
example: 256
title:
type: string
description: |
A part of title to filter assessments on.
example: English 3/4 [Final]
assessmentType:
description: The type of assessments to filter on.
type: string
enum:
- task
- quiz
- dueWork
- LTI
- project
example: dueWork
folder:
oneOf:
- type: array
description: Array for folders to filter assessments on.
items:
type: object
description: |
Select either one of the following fields to filter on:
properties:
id:
type: integer
description: ID of the folder containing the assessment.
example: 80
code:
type: string
description: Code of the folder containing the assessment.
example: 9ENGA
- type: object
description: |
Select a folder ID to filter on:
properties:
id:
type: integer
description: ID of the folder containing the assessment.
example: 80
subjectCode:
type: array
items:
type: string
description: |
The Course Subject Code.
weighted:
type: boolean
example: false
description: |
Limit assessments to only those that have a weight set.
workType:
type: object
description: |
Select either one of the following fields to filter on:
properties:
id:
type: integer
description: The DB identifier of the worktype.
example: 1
name:
type: string
description: The name of the work type, may not be unique.
example: Formative Assessment
dueDate:
type: object
properties:
from:
type: string
format: date-time
description: |
An RFC3339 time string including timezone eg. 2017-10-12T14:20:50+10:00
example: '2017-10-12T14:20:50+10:00'
to:
type: string
format: date-time
description: |
An RFC3339 time string including timezone eg. 2017-10-12T14:20:50+10:00
example: '2019-10-12T14:20:50+10:00'
yearLevel:
type: object
description: |
Select either one of the following fields to filter on year levels associated with folder:
properties:
id:
type: integer
description: The db identifier of the yearlevel.
example: 6
name:
type: string
description: The name of the year level, may not be unique.
example: Year 6
project:
type: object
properties:
id:
type: integer
description: ID of the parent assessment (project).
example: 255
- $ref: ../components/parameters/cursor.yaml
- $ref: ../components/parameters/limit.yaml