Qujini icon indicating copy to clipboard operation
Qujini copied to clipboard

Create generatePaper API

Open aswinshenoy opened this issue 6 years ago • 2 comments

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].

aswinshenoy avatar Jun 24 '19 00:06 aswinshenoy

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 avatar Jun 24 '19 00:06 aswinshenoy

@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?

nipan09 avatar Jul 10 '19 13:07 nipan09