for owner and author
GET /api/v1/courses/:course_id/preenrollments
Parameters
| Name |
Description |
|
course_id
|
Id of course
|
Request
Headers
Route
GET /api/v1/courses/342/preenrollments
Query Parameters
{}:
cURL
curl "http://localhost:3000/api/v1/courses/342/preenrollments" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: WrUseuXN9j7-6YiewHQNGBxmRcD5ho4jxw" \
-H "X-Api-Email: user-230@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"preenrollments": [
],
"meta": {
"count": 0,
"completed_enrollment": 0,
"have_been_emailed": 0
}
}
Request
Headers
Route
GET /api/v1/courses/342/preenrollments
Query Parameters
{}:
cURL
curl "http://localhost:3000/api/v1/courses/342/preenrollments" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: WrUseuXN9j7-6YiewHQNGBxmRcD5ho4jxw" \
-H "X-Api-Email: user-230@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"preenrollments": [
],
"meta": {
"count": 0,
"completed_enrollment": 0,
"have_been_emailed": 0
}
}