Luna-DroMo / luna_backend

2 stars 1 forks source link

Backend - GET Endpoint Surveys currently open for a student #62

Open TheDepe opened 7 months ago

TheDepe commented 7 months ago

Need an endpoint essentially:

return (Surveys.objects.filter(student=student_id, status=not_completed))

Fields required:

Survey ID Survey number Module Info Survey Deadline

hcagatayyilmaz commented 7 months ago

So the story here is like this, each midnight we are expecting to run cronjob. if module.survey date is that exact date, we are new instance of survey, set it active and all rest will be passive, so I can return you only the active one when you ask GET: student_id/survey GET: student/id/module/3/survey/2

Do we need both cases

hcagatayyilmaz commented 7 months ago

there might be some extra or missing fields but I can add