You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.
Requires fixing #12,
The generatePaper API accepts question paper contstrains from the user, generates a question paper and returns it.
(Proposed) Parameters/Constraints
marks
difficulty
clubQuestions - Boolean
optionalQuestions - Boolean
savePreset - Boolean
topics: ObjectArray{
topics: (Relational to topic model, its slug should be accepted),
min_marks: int,
max_marks: int,
optional: boolean (default false)
}
types: ObjectArray{
types: (Relational to type model, its slug should be accepted),
min_marks: int,
max_marks: int
} [ Optional ]
sections: ObjArray{
title: string,
marks: int
types: (Relational to type model, its slug should be accepted),
topics: (Relational to topic model, its slug should be accepted),
difficulty:[enum]
}
(Proposed) Return
-> Return QuestionPaper Obj ID [ which can be queried using another API to get the question paper in required form].
The text was updated successfully, but these errors were encountered:
The logic of question paper generation can be implemented separately, essentially this issue is only to handle the API and send required params to the generator script (assuming one exists).
@aswinshenoy, I am trying to add relation for types and sections parameters and also enum type for difficulty constraint under sections parameters, but I cannot able to put it in schema file. How should I approach?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Requires fixing #12,
The generatePaper API accepts question paper contstrains from the user, generates a question paper and returns it.
(Proposed) Parameters/Constraints
marks
difficulty
clubQuestions
- BooleanoptionalQuestions
- BooleansavePreset
- Booleantopics
: ObjectArray{topics: (Relational to topic model, its slug should be accepted),
min_marks: int,
max_marks: int,
optional: boolean (default false)
}
types
: ObjectArray{types: (Relational to type model, its slug should be accepted),
min_marks: int,
max_marks: int
} [ Optional ]
sections
: ObjArray{title: string,
marks: int
types: (Relational to type model, its slug should be accepted),
topics: (Relational to topic model, its slug should be accepted),
difficulty:[enum]
}
(Proposed) Return
-> Return QuestionPaper Obj ID [ which can be queried using another API to get the question paper in required form].
The text was updated successfully, but these errors were encountered: