Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note

Objects are exported and imported relative to the request URI path given. By default, the exported jcr/xml won't contain any subtrees and binary contents.

 E.g., if you run:

Code Block
curl "http://localhost:8080/rest/path/to/resource/fcr:export" > export.xml
curl -X POST --data-binary "@export.xml" "http://localhost:8080/rest/somewhere/else"

The resource with no subtree and binary content will be imported to http://localhost:8080/rest/somewhere/else/resource.

...

Status
titleGET
  fcr:export Retrieve serialized form of a resource with no . By default, no subtree and binary by defaultbinary content will be exported.

Request Headers:

Status
subtletrue
titleFormat
 Export formats; the exact formats available depend on the repository configuration.

Request Parameters:

recursiverecurse: To export subtree with its value set to true. For example, recurse=true.  Default Default is false. 

skipBinary: To export binary content with its value set to false. For example, skitBinary=false.  Default Default is true. 

 

Note

The available export formats for an object are available as properties of nodes, e.g. this node exports jcr/xml:

Code Block
<> <http://fedora.info/definitions/v4/rest-api#exportsAs> <./fcr:export?format=jcr/xml> ;

...

To export a resource with no subtree and no binary content:

Code Block
curl "http://localhost:8080/rest/path/to/some/resource/fcr:export"

...