Preenrollments API

for owner and author

GET /api/v1/courses/:course_id/preenrollments

Parameters

Name Description
course_id Id of course

Request

Headers

Accept: application/json
X-Api-Token: WrUseuXN9j7-6YiewHQNGBxmRcD5ho4jxw
X-Api-Email: user-230@example.com

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

Content-Type: application/json; charset=utf-8
Content-Length: 87

Status

200 OK

Body

{
  "preenrollments": [

  ],
  "meta": {
    "count": 0,
    "completed_enrollment": 0,
    "have_been_emailed": 0
  }
}

Request

Headers

Accept: application/json
X-Api-Token: WrUseuXN9j7-6YiewHQNGBxmRcD5ho4jxw
X-Api-Email: user-230@example.com

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

Content-Type: application/json; charset=utf-8
Content-Length: 87

Status

200 OK

Body

{
  "preenrollments": [

  ],
  "meta": {
    "count": 0,
    "completed_enrollment": 0,
    "have_been_emailed": 0
  }
}