Quiz API
["160","161"]returns nothing when none of the banks belong to authorized user
GET /api/banks/batch_show HTTP/1.1
Host:
Accept: */*
returns nothing when none of the banks belong to authorized user
{
"error": "Unknown host",
"errors": [
{
"error_type": "ActiveRecord::RecordNotFound",
"message": "Unknown host"
}
]
}populates the export_settings field with the given export_settings param
POST /api/content_exports HTTP/1.1
Host:
Accept: */*
populates the export_settings field with the given export_settings param
{
"error": "Unknown host",
"errors": [
{
"error_type": "ActiveRecord::RecordNotFound",
"message": "Unknown host"
}
]
}example at ./spec/requests/api/v1/courses_controller_spec.rb:208
POST /api/courses HTTP/1.1
Host:
Accept: */*
example at ./spec/requests/api/v1/courses_controller_spec.rb:208
{
"error": "Unknown host",
"errors": [
{
"error_type": "ActiveRecord::RecordNotFound",
"message": "Unknown host"
}
]
}9999is expected to be not found
DELETE /api/courses/{canvas_id} HTTP/1.1
Host:
Accept: */*
is expected to be not found
{
"error": "Unknown host",
"errors": [
{
"error_type": "ActiveRecord::RecordNotFound",
"message": "Unknown host"
}
]
}201is expected to be not found
PUT /api/courses/{canvas_id} HTTP/1.1
Host:
Accept: */*
is expected to be not found
{
"error": "Unknown host",
"errors": [
{
"error_type": "ActiveRecord::RecordNotFound",
"message": "Unknown host"
}
]
}196associates courses which have previously been archived
PATCH /api/courses/{canvas_id}/associate_courses HTTP/1.1
Host:
Accept: */*
associates courses which have previously been archived
{
"error": "Unknown host",
"errors": [
{
"error_type": "ActiveRecord::RecordNotFound",
"message": "Unknown host"
}
]
}550000000000154replaces the local canvas_id with the global canavs_id
PATCH /api/courses/{canvas_id}/associate_quizzes HTTP/1.1
Host:
Accept: */*
replaces the local canvas_id with the global canavs_id
{
"error": "Unknown host",
"errors": [
{
"error_type": "ActiveRecord::RecordNotFound",
"message": "Unknown host"
}
]
}is expected to be bad request
POST /api/items/check_shareability HTTP/1.1
Host:
Accept: */*
is expected to be bad request
{
"error": "Unknown host",
"errors": [
{
"error_type": "ActiveRecord::RecordNotFound",
"message": "Unknown host"
}
]
}is expected to be unprocessable
POST /api/quiz_clone_jobs/create_batch HTTP/1.1
Host:
Accept: */*
is expected to be unprocessable
{
"error": "Unknown host",
"errors": [
{
"error_type": "ActiveRecord::RecordNotFound",
"message": "Unknown host"
}
]
}["1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724"]3499returns all the quiz sessions without paginating
GET /api/quiz_sessions HTTP/1.1
Host:
Accept: */*
returns all the quiz sessions without paginating
{
"error": "Unknown host",
"errors": [
{
"error_type": "ActiveRecord::RecordNotFound",
"message": "Unknown host"
}
]
}1764true176435331436does not invalidate the student access code
GET /api/quiz_sessions/{id} HTTP/1.1
Host:
Accept: */*
does not invalidate the student access code
{
"error": "Unknown host",
"errors": [
{
"error_type": "ActiveRecord::RecordNotFound",
"message": "Unknown host"
}
]
}145then the elapsed time should be the sum of the previous and current attempt
GET /api/quiz_sessions/{id}/time HTTP/1.1
Host:
Accept: */*
then the elapsed time should be the sum of the previous and current attempt
{
"timer_running": false,
"time_left_in_seconds": 170
}146jsonthen the assignment will autosubmit and cannot be resumed
GET /api/quiz_sessions/{quiz_session_id}/quiz_session_response_events HTTP/1.1
Host:
Accept: */*
then the assignment will autosubmit and cannot be resumed
[]160should not modify the session response data
GET /api/quiz_sessions/{quiz_session_id}/session_item_responses HTTP/1.1
Host:
Accept: */*
should not modify the session response data
[
{
"attempt": 1,
"position": 1,
"item_id": "877",
"user_response": {
"value": [
"dbf5d3e1-e92e-45ba-8151-5f67095d8add",
"b3227f8d-47ac-48cc-a2df-ce7768dc6d93"
]
}
},
{
"attempt": 1,
"position": 2,
"item_id": "878",
"user_response": {
"value": "b2d93c86-caaa-4fdc-b32f-7ed692384ffa"
}
}
]returns created: false
POST /api/quiz_sync_jobs/create_batch HTTP/1.1
Host:
Accept: */*
returns created: false
{
"error": "Unknown host",
"errors": [
{
"error_type": "ActiveRecord::RecordNotFound",
"message": "Unknown host"
}
]
}2462json["2762","2764"]1uses v1 endpoints by default
fails with not_found if any one quiz is missing
GET /api/quizzes HTTP/1.1
Host:
Accept: */*
{
"error": "Nil JSON web token",
"errors": [
{
"error_type": "JWT::DecodeError",
"message": "Nil JSON web token"
}
]
}1461does not create a bank share job
POST /api/quizzes/{quiz_id}/quiz_clone_jobs HTTP/1.1
Host:
Accept: */*
does not create a bank share job
{
"error": "Unknown host",
"errors": [
{
"error_type": "ActiveRecord::RecordNotFound",
"message": "Unknown host"
}
]
}indicates the content is shareable
POST /api/stimuli/check_shareability HTTP/1.1
Host:
Accept: */*
indicates the content is shareable
{
"error": "Unknown host",
"errors": [
{
"error_type": "ActiveRecord::RecordNotFound",
"message": "Unknown host"
}
]
}a11paginates properly
GET /api/tags HTTP/1.1
Host:
Accept: */*
paginates properly
{
"error": "Unknown host",
"errors": [
{
"error_type": "ActiveRecord::RecordNotFound",
"message": "Unknown host"
}
]
}Last updated
Was this helpful?