lms.djangoapps.commerce.api.v0 package#
Submodules#
lms.djangoapps.commerce.api.v0.urls module#
API v0 URLs.
lms.djangoapps.commerce.api.v0.views module#
API v0 views.
- class lms.djangoapps.commerce.api.v0.views.BasketOrderView(**kwargs)#
Bases:
APIViewRetrieve the order associated with a basket.
- get(request, *_args, **kwargs)#
HTTP handler.
- permission_classes = (<class 'rest_framework.permissions.IsAuthenticated'>,)#
- class lms.djangoapps.commerce.api.v0.views.BasketsView(**kwargs)#
Bases:
APIViewCreates a basket with a course seat and enrolls users.
- authentication_classes = (<class 'edx_rest_framework_extensions.auth.jwt.authentication.JwtAuthentication'>, <class 'openedx.core.lib.api.authentication.BearerAuthenticationAllowInactiveUser'>, <class 'openedx.core.djangoapps.enrollments.views.EnrollmentCrossDomainSessionAuth'>)#
- permission_classes = (<class 'rest_framework.permissions.IsAuthenticated'>,)#
- post(request, *args, **kwargs)#
Attempt to enroll the user.