...
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:
The resource with no subtree and binary will be imported to http://localhost:8080/rest/somewhere/else/resource. |
...
fcr:export Retrieve serialized form of a resource and its subtreewith no subtree and binary by default. Status title GET
Request Headers:
Export formats; the exact formats available depend on the repository configuration. Status subtle true title Format
Request Parameters:
recursive: To export subtree with value set to true. For example, recurse=true. Default is false.
skipBinary: To export binary content with value set to false. For example, skitBinary=false. Default is true.
Note | ||
---|---|---|
The available export formats for an object are available as properties of nodes, e.g. this node exports jcr/xml:
|
Example:
To export a resource with no subtree and no binary content:
Code Block |
---|
curl "http://localhost:8080/rest/path/to/some/resource/fcr:export" |
To export a resource with subtree and binary content:
Code Block |
---|
curl "http://localhost:8080/rest/path/to/some/resource/fcr:export?recurse=true&skipBinary=false" |
Response:
Code Block |
---|
Status: 200 Headers: Content-Type: application/xml Body: <?xml version="1.0" encoding="UTF-8"?><sv:node xmlns:dc="http://purl.org/dc/terms/" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:ns001="http://purl.org/dc/elements/1.1/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:test="info:fedora/test/" xmlns:image="http://www.modeshape.org/images/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fedorarelsext="http://fedora.info/definitions/v4/rels-ext#" xmlns:mix="http://www.... |
...