Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Overview:

   Sunbird un-enroll service batch unenroll API is built to facilitate user to un-enroll unenroll from an active open batch.

...

   How to empower user to un-enroll unenroll from an active open batch by their own.

...

     We need to construct a new API for the same. This API needs the user to provide valid userid, batchid and courseid to un-enroll them. For In this , there is a need to proposed solution, we will add a new column namely 'isunenrollmentallowed' (boolean) in the table Unenroll Service the  table sunbird.course_batch to indicate if unenrollment from a given batch is allowed or not.

Proposed Solution 2:

     In this proposed solution, we can add a new column called 'permissions' (bitmap) for different permissions applicable on the batch for any course. Based on that permission, we can decide to unenroll the particular user from that batch.

Batch Unenroll API:

    URI : "/v1/user/course/batchcourses/unenroll"

          Request : 
                   {
                     "params": { },
                     "request":{
					“userid” : “adjad-asndk-djs73ne-dsmn”,
					“batchid” : “adhjka-djkah-dfhj-dmnsbd”,
					“courseid”:”djaskfsk-djashfkja-fsjdfjks-sfdnjskdh”
                              }
                        }