openedx.core.djangoapps.demographics.rest_api.v1 package#
Submodules#
openedx.core.djangoapps.demographics.rest_api.v1.urls module#
URL Routes for this app.
openedx.core.djangoapps.demographics.rest_api.v1.views module#
- class openedx.core.djangoapps.demographics.rest_api.v1.views.DemographicsStatusView(**kwargs)#
Bases:
APIViewDemographics display status for the User.
The API will return whether or not to display the Demographics UI based on the User’s status in the Platform
- authentication_classes = (<class 'edx_rest_framework_extensions.auth.jwt.authentication.JwtAuthentication'>, <class 'rest_framework.authentication.SessionAuthentication'>)#
- get(request)#
GET /api/user/v1/accounts/demographics/status
This is a Web API to determine the status of demographics related features
- patch(request)#
PATCH /api/user/v1/accounts/demographics/status
This is a Web API to update fields that are dependent on user interaction.
- permission_classes = (<class 'rest_framework.permissions.IsAuthenticated'>,)#