Full course (tarball) Import/Export API changes

126 views
Skip to first unread message

Brandon DeRosier

unread,
Jun 24, 2015, 6:52:32 PM6/24/15
to edx-...@googlegroups.com

openedX community,


I’ve been working on an OAuth2 compatible API for importing and exporting of full course/library tarballs (PR: https://github.com/edx/edx-platform/pull/6190), which is intended for use on edx.org. As it’s very close to completion, I wanted to do a small write-up of how these changes will affect Studio’s current full course Import/Export system when merged.


In short, everything should appear and work exactly as it does now when clicking through Studio’s UI. However, any existing tools that automatically login to studio and do course/library imports/exports will at least need to update the URLs:



Key:

[COURSE_OR_LIBRARY_KEY]: The course key or library key of the course to return.

  • Example: course-v1:1234+1234+1234

[REDIRECT_URL]: Optional, and only passed as a parameter to the export endpoint. If supplied, this is the URL that the API will redirect to upon any export failure, passing it various GET params.

  • Example (URL encoded): %2Fexport%2Fcourse-v1%3A1234%2B1234%2B1234

[FILENAME]: Only used in the status URL. It's function has not changed from that of Studio's old import status endpoint, and should be equal to the name of the course/library tarball being imported.

  • Example: 1T2015.KtWAXA.tar.gz


Other than the URL changes, importing and exporting via session authentication will still work the same as it does now. Please post here if you have any questions or concerns.


Thank you,

Brandon

Jesse Zoldak

unread,
Jun 25, 2015, 9:46:18 AM6/25/15
to edx-...@googlegroups.com
Brandon --

Thanks for the heads up.

Our CI system has some end to end automated system tests that use the existing "import" management command to import a course via tarball into a deployed system and then acts against that course via a browser.
Will the management command still work as-is or need to be changed?

-- JZ

Brandon DeRosier

unread,
Jun 26, 2015, 2:50:46 PM6/26/15
to edx-...@googlegroups.com
Hi Jesse,

Yes, that management command still works, and I just tested it to be sure. The command's code doesn't intersect with anything that's been modified as a result of this PR; it's more of a reworking of the import/export views in studio than anything else.

- Brandon


On Wednesday, June 24, 2015 at 6:52:32 PM UTC-4, Brandon DeRosier wrote:
Reply all
Reply to author
Forward
0 new messages