Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Orion/Server API/Transfer API

< Orion‎ | Server API
Revision as of 17:19, 10 January 2011 by John arthorne.ca.ibm.com (Talk | contribs) (New page: '''Under Construction: This API is not yet implemented''' The transfer API is used for batch import and export of directory trees to/from an Orion workspace. = Import = * POST request, ...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Under Construction: This API is not yet implemented

The transfer API is used for batch import and export of directory trees to/from an Orion workspace.

Import

  • POST request, returns a URI for resumable upload (uploading in chunks will allow for progress reporting). Request indicates whether we are uploading a file that should be stored directly in the workspace, or whether it is an archive that will need to be extracted into the workspace on the server.
  • POST Response Location indicates upload URL
  • Series of PUT requests to upload URL, using Content-Range header
  • Responses indicate what total range server already knows
  • Once server has all the bytes the file is stored or extracted into the workspace


Export

  • GET request /xfer/export/<filename.zip>
  • Request body contains:
    • Array of files/directories to export - depth infinity is assumed, children should be listed independently if depth infinity is not desired
    • Content type of response (zip, tar, etc)

Copyright © Eclipse Foundation, Inc. All Rights Reserved.