Skip to Content
Author's profile photo Mounika T

WEBIDE XSA : Export projects in the workspace via exposed API’s

Hi All,

I am developer in SAP and am working on XSA advanced features .

This blog will explain how the work space export API, will provide archived work spaces content for the required user and user preferences.

Prerequisite  :-

The exposed API’s functionality should be available in SPS12 manually,SPS02 and SPS03 as part of implementation.So,make sure the webide XSA system will be incorporated with these versions.

 

The Workspace Export API shall be invoked as follows:-

 

1.Obtain either Space Enablement or Certificate Management Admin Tool URL from the backend.

eg:-

On executing the above command, It will return the Certificate Management admin tool url.

Similarly,to get the Space Enablement url execute ” xs app di-space-enablement-ui –urls

 

2. Open any browser and provide the following API URL in the addressbar :-

https://{di-cert-admin URL}/che/workspace/export-all/{userid}

( i.e., https://host:port/che/workspace/export-all/userXXX )

 

3. Now,login as system administrator.

 

4. On clicking of “Log On” button,it downloads a zip file as shown below. The name of the zip               file  with be same as {userid } provided in the base url.

 

 

5.  Open the Zip folder downloaded.you can find the list of projects available inside the zip folder.

 

Thus, all the existing projects inside webide workspace can be imported as “ZIP” file via exposed API calls.

 

Hope this blog will be helpful 🙂

Thank you !!!

 

 

 

 

 

Assigned Tags

      2 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Ivan Mirisola
      Ivan Mirisola

      Hi,

      export-all returns "Not Found" message for any user. I am running on SP12.

      Regards,
      Ivan

      Author's profile photo Mounika T
      Mounika T
      Blog Post Author

      HI Ivan,

      As a pre-requisite ,i have made a point that it supports SPS12 manually.
      It means,the export is done manually via a script not via this API.

      This wiki details the steps :-https://wiki.wdf.sap.corp/wiki/display/CXP/DI+Workspace+Export#DIWorkspaceExport-ConsumptionGuidelines

       

      Regards

      Mounika