This adds a new django app to allow the GDPR user retirement via Open edX's REST API. Prior to this the only way to trigger the user retirement was either by the user themself clicking "Delete my account" in the account setting page or via creating a User Retirement request by admin. With these changes, the user retirement process can be triggered using REST API.
17 lines
279 B
Python
17 lines
279 B
Python
"""
|
|
Defines the URL route for this app.
|
|
"""
|
|
|
|
from django.conf.urls import url
|
|
|
|
from .views import BulkUsersRetirementView
|
|
|
|
|
|
urlpatterns = [
|
|
url(
|
|
r'v1/accounts/bulk_retire_users$',
|
|
BulkUsersRetirementView.as_view(),
|
|
name='bulk_retirement_api'
|
|
),
|
|
]
|