Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Create generatePaper API #13

Open
aswinshenoy opened this issue Jun 24, 2019 · 2 comments
Open

Create generatePaper API #13

aswinshenoy opened this issue Jun 24, 2019 · 2 comments

Comments

@aswinshenoy
Copy link
Contributor

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 aswinshenoy added this to the Implement APIs milestone Jun 24, 2019
@aswinshenoy
Copy link
Contributor Author

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

@nipan09
Copy link
Contributor

nipan09 commented Jul 10, 2019

@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 free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants