CourseProgresses API

with an enrollment created inside range

GET /api/v1/course_progresses/users_in_range

Parameters

Name Description
course_id Id of course for course progresses
min_days_ago minimum age of enrollment in days
max_days_ago maximum age of enrollment in days

Request

Headers

Accept: application/json
X-Api-Token: id6RNpJDirr3CzG3saxBxnWxCkSt6ha24A
X-Api-Email: user-397@example.com

Route

GET /api/v1/course_progresses/users_in_range?course_id=209&min_days_ago=3&max_days_ago=7

Query Parameters

course_id: 209
min_days_ago: 3
max_days_ago: 7

cURL

curl "http://localhost:3000/api/v1/course_progresses/users_in_range?course_id=209&min_days_ago=3&max_days_ago=7" -X GET \
	-H "Accept: application/json" \
	-H "X-Api-Token: id6RNpJDirr3CzG3saxBxnWxCkSt6ha24A" \
	-H "X-Api-Email: user-397@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

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

Status

200 OK

Body

{
  "count": 1
}