Sequencing of a question paper
Question paper needs to be sequenced. Have a Go-live/ Start date and a Live-Until/ End date. These are required to ensure that the Question paper can be prepared and published beforehand and will only be shown to students only after the start date and until the end date.
Approach 1:
This is configured as a property for the collection/ question set
The API sends all the Question papers in the search API
It will be the job of the frontend to identify the active/live question papers and show it to the users
Approach 2:
This is configured as a property for the collection/ question set
The API sends only a filtered list of question papers (Filtered for active; the date of request lies between the dates of Start and end date of question paper) relevant Question papers in the search API
The front end is dumb and shows whatever the API returns