Table of Contents |
---|
Excerpt | ||||||
---|---|---|---|---|---|---|
Request URI: /path/to/some/resource/fcr:export Methods: GET, POST
|
...
Status |
|
...
. By default, no subtree and binary |
...
content will be exportedRequest Headers:
|
...
Parameters: |
...
recurse: To export subtree with its value set to true. For example, recurse=true. |
...
Default is false. skipBinary: To export binary content with its value set to false. For example, |
...
skipBinary=false. |
...
Default is true.
Example: To export a resource with no subtree and no binary content:
To export a resource with subtree and binary content:
Response:
Status:
|
...
Status |
|
Status | ||||||
---|---|---|---|---|---|---|
|
CONTENT-LOCATION (Optional) A URI to a resource to use instead of the request body
Example:
Code Block |
---|
curl -X POST --data-binary "@export.xml" "http://localhost:8080/rest/path/to/some/fcr:import?format=jcr/xml"
Body:
|
<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.... |
Response:
Code Block |
---|
Status: 201 Created
Headers:
Location: http://localhost:8080/rest/path/to/some/resource/ |
Status:
Status | ||||||||
---|---|---|---|---|---|---|---|---|
|
...
No Content: if the resource is imported successfully
Response:
|