with text attachments
GET /v1/:school_id/current_user/courses/:id/attachments
Parameters
| Name |
Description |
|
school_id
|
school_id
|
|
id
|
id
|
Request
Headers
Route
GET /v1/602/current_user/courses/326/attachments
Query Parameters
{}:
cURL
curl "http://localhost:3000/v1/602/current_user/courses/326/attachments" -X GET \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Client-Token: mobile" \
-H "Sso-Token: K4wvFsxEWpMYfRous6qK" \
-H "Host: api.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"attachments": [
{
"id": 101,
"name": "",
"host": null,
"host_id": null,
"kind": "html",
"downloadable": true,
"url": null,
"text": "This is a test thingy",
"duration": 0,
"attachable_type": "Lecture",
"attachable_id": 90,
"is_published": true,
"position": null,
"thumbnail_url": null,
"large_thumbnail_url": null,
"created_at": "2019-10-31T22:08:38Z",
"updated_at": "2019-10-31T22:08:38Z",
"file_size": 0,
"file_extension": "",
"quiz": null,
"captions": [
],
"comments": [
]
}
]
}