How an exam's paper is shaped, and whether the bank can fill it.
const url = 'https://api.utmelab.com/api/v1/exams/example/papers';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.utmelab.com/api/v1/exams/example/papers \ --header 'X-API-Key: <X-API-Key>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Exam code, e.g. JAMB.
Query Parameters
Section titled “Query Parameters”Country scope, e.g. GH. A one-country exam implies its own;
anything else needs it said out loud, and completeness is only
ever claimed for a scope.
Responses
Section titled “Responses”The scheme plus whether the bank can fill it. Readiness sits beside the scheme rather than inside it, so the validated shape does not move as our content grows.
object
True when every requirement group for this scope holds enough
verified questions to fill its min_select slots.
How an exam’s paper is shaped, restated from the bank (D19). This is a constant over our content, so it moves only when the bank does.
object
Country scope this scheme was computed for. Absent means the full honest view, and completeness is only ever claimed for a scope.
Minutes for a full sitting, verified only. Null where unverified.
Questions a full paper holds, summed from subjects we can fill. A lower bound for any exam whose bank is incomplete.
The paper-assembly rules evaluated for this scope, copied from the
exam’s requirement rows so a consumer sees what complete meant.
One board rule about which subjects a paper needs. An empty subjects
means “every exam subject not named by another group”; min_select is
how many of that pool must be ready before the paper is real.
object
Board-stated rules a consumer must know. Empty where unstated.
One subject’s slot in an exam scheme. questions is the stated paper
size (null where unverified), and marks_per_question is stated only
where the bank supports it: both are absences, never zeros.
object
Which subjects can fill a slot today, by slug.
Example generated
{ "complete": true, "exam": "example", "scheme": { "country": "example", "duration_minutes": 1, "exam": "example", "questions_available": 1, "requirements": [ { "group": "example", "min_select": 1, "subjects": [ "example" ] } ], "rules": [ "example" ], "subjects": [ { "compulsory": true, "marks_per_question": 1, "name": "example", "questions": 1, "slug": "example" } ], "subjects_ready": [ "example" ] }}An API key is missing or invalid.
Stable body returned by HTTP error responses.
object
Example generated
{ "code": "example", "error": "example"}The API key lacks the required scope.
Stable body returned by HTTP error responses.
object
Example generated
{ "code": "example", "error": "example"}No such exam, or an exam with no subjects
Stable body returned by HTTP error responses.
object
Example generated
{ "code": "example", "error": "example"}The caller has exceeded the applicable rate limit.
Stable body returned by HTTP error responses.
object
Example generated
{ "code": "example", "error": "example"}The API is temporarily unavailable.
Stable body returned by HTTP error responses.
object
Example generated
{ "code": "example", "error": "example"}