Export a Library

get

/ic/api/integration/v1/libraries/{id}/archive

Exports the library jar file containing the JS files to the location specified with the -o option. This operation returns a byte stream that is output to the display by default. If you are using cURL, use the -o option to save the response to a file.

Request

Supported Media Types
Path Parameters
  • Library identifier. The id must be added to the request in the following form: code%7Cversion. For example: JSLIB%7C01.00.0000. The %7C is the encoded | (vertical line).
Back to Top

Response

Supported Media Types

200 Response

Successful operation
Body ()
Root Schema : schema
Type: array
Show Source

404 Response

Library not found

500 Response

Server error
Back to Top

Examples

The following example shows how to export a JavaScript library to a specified file by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL. For more information about endpoint URL structure, see Send Requests.

Example: Export a JavaScript library

This command exports the library to the specified file myfile.jar in the same directory from which the command was run.

The id is in the form: code%7Cversion. The %7C is the encoded | (vertical line).

curl -X GET -H 'Authorization: Bearer access_token' -o 'myfile.jar' https://integration.us.oraclecloud.com/ic/api/integration/v1/libraries/JSLIB%7C01.00.0000/archive

Required options for this cURL request:

  • -o '/path/myfile.jar': Location and name of the file in which to save the library.
Back to Top