You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/index.html.md
+106-16
Original file line number
Diff line number
Diff line change
@@ -16,8 +16,7 @@ search: true
16
16
17
17
*Note: API is still a work in progress.*
18
18
19
-
For the students, view <ahref="/student_api">the student api</a>
20
-
19
+
Most of the API is restricted to faculty, however the [Gradeables](#gradeables) section can be used by students or faculty.
21
20
API provides an alternative way of interacting with Submitty. It facilitates testing, helps system administrators to modify resources and enables users to create customized frontends.
22
21
23
22
Note that as we rely on the Authorization header information to authenticate users, please make sure that you have a correct Apache configuration file as specified in [Installation Version Notes: v19.06.02](https://submitty.org/sysadmin/version_notes/v19.06.02).
@@ -171,18 +170,18 @@ curl --request GET \
171
170
"data": {
172
171
"unarchived_courses": [
173
172
{
174
-
"semester": "f19",
173
+
"term": "f19",
175
174
"title": "blank",
176
175
"display_name": "",
177
-
"display_semester": "Fall 2019"
176
+
"display_term": "Fall 2019"
178
177
}
179
178
],
180
179
"archived_courses": [
181
180
{
182
-
"semester": "f19",
181
+
"term": "f19",
183
182
"title": "sample",
184
183
"display_name": "",
185
-
"display_semester": "Fall 2019"
184
+
"display_term": "Fall 2019"
186
185
}
187
186
]
188
187
}
@@ -200,10 +199,10 @@ Get all the courses the user is taking or have taken.
200
199
```shell
201
200
curl --request POST \
202
201
--url <base_url>/api/courses \
203
-
--form course_semester=f19 \
202
+
--form course_term=f19 \
204
203
--form course_title=api \
205
204
--form head_instructor=instructor \
206
-
--form base_course_semester=f19 \
205
+
--form base_course_term=f19 \
207
206
--form base_course_title=sample \
208
207
--header 'Authorization: my_token'
209
208
```
@@ -220,10 +219,10 @@ Note that the endpoint builds a course based on a prior course offering (called
220
219
221
220
Parameter | Description
222
221
--------- | -----------
223
-
course_semester | Semester of the new course
222
+
course_term | term of the new course
224
223
course_title | Title (or code) of the new course
225
224
head_instructor | Head instructor of the new course
226
-
base_course_semester | Semester of the base course
225
+
base_course_term | term of the base course
227
226
base_course_title | Title (or code) of the base course
228
227
229
228
# Courses.Users
@@ -232,7 +231,7 @@ base_course_title | Title (or code) of the base course
232
231
233
232
```shell
234
233
curl --request GET \
235
-
--url <base_url>/api/<semester>/<course>/users \
234
+
--url <base_url>/api/<term>/<course>/users \
236
235
--header 'Authorization: my_token'
237
236
```
238
237
@@ -268,13 +267,13 @@ This end point gets all users in a course.
The endpoint returns values associated with an autograded gradeable with the given gradeable_id, which allows for determining a score on an assignment, if it has been graded, etc.
0 commit comments