Overview:
As of now open batch is allowing user to do the enrollment , but there is no option for un-enrollment.
Problem Statement:
Allow user to do the un-enrollment from open batch , if batch is not closed or user haven't completed it.
Proposed Solution :
Provide a new api for un-enrollment of open batch. Api request structure will be as follow.
{
"params"
: { },
"request"
: {
“userid” : “string”,
“batchid” : “string”,
“courseid”: ”string”
}
}
Once user will un-enroll his/her data will be removed from db.
Data base changes :
one extra attribute ("unenrollAllowed") need to be set inside course-batch table , to identify un-enrollment is allowed for this open batch or not.This attribute can be set during create/update open batch.