I’m trying to figure out how to pass a textbook (PDF and additional meta information) to an external REST API from an edx-platform course. How would I go about doing that?
I’ve looked here http://localhost:18000/api-docs/ but cannot find an endpoint for the textbook. I did, however, find this
textbooks_list_handler endpoint (edx-platform/course.py at open-release/koa.master · edx/edx-platform · GitHub) which I thought might be useful but I receive the following error.
How would I go about setting the
request.user value to a valid EdX user rather than getting the AnonymousUser?
Error – fails with
"GET /textbooks/course-v1:DEMO+AT-BR101+2020_Fall?username=edx_key_terms_api_worker HTTP/1.1" 403 22