Skip to main content

Exams

GET https://lmsdemo.testpress.in/api/v2.5/admin/exams/
Exams List API

This will return list of exams

Parameters

Query

orderingstringTThis will sort the results start_date (Exams with oldest start date will be displayed first)-start_date (Exams with latest start date will be displayed first)end_date (Exams with oldest end date will be displayed first)-end_date (Exams with latest end date will be displayed first)
end_datestringThis will filter exams which are lesser than the provided end date. Date format is YYYY-MM-DD. Ex: 2021-12-02
start_datestringThis will filter exams which are greater than the provided start date. Date format is YYYY-MM-DD. Ex: 2010oo-12-02
statusstringCan be running, upcoming, completed

Responses

200

{ "count":1, "next":null, "previous":null, "per_page":200, "results":[ { "created":"2021-04-13T11:45:28.582267Z", "description":"", "duration":"17:15:12", "enable_ranks":false, "end_date":null, "mark_per_question":"1.00", "modified":"2021-04-16T10:25:47.838579Z", "negative_marks":"0.00", "number_of_questions":8, "pass_percentage":50, "published":true, "start_date":"2021-04-13T11:45:12Z", "title":"All Question Types", "show_score":true, "show_percentile":true, "show_pass_or_fail":false, "total_marks":"7.00" } ] }

Examples:

/api/v2.5/admin/exams/?start_date=2020-02-02&ordering=-start_date

The above URL will display exams that have start date greater than 2nd Feb 2020 and exams with recent start date will displayed first

/api/v2.5/admin/exams/?status=running&ordering=start_date

The above URL will display exams are running and exams with oldest start date will be displayed first