Versions Compared

Key

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

...

Code Block
GET /rest/objects/sufia:123456789/fcr:export
  retrieve a JCR/XML export of the content under /objects/sufia:123456789
 
POST /rest/objects/fcr:import with the request body retrieved as above
  add sufia:123456789 to the tree at /objects, with all its properties, child nodes, etc
 
POST /rest/fcr:importand this works too

Transactions

/rest/fcr:tx
 
- POST create a new transaction session

/rest/fcr:tx/{txid}
 - GET the status of a transaction

/rest/fcr:tx/{txid}/fcr:commit
 - POST commit the transaction 

/rest/fcr:tx/{txid}/fcr:rollback
 - POST abort the transaction 

Code Block
POST /rest/fcr:tx
  retrieve a JSON or XML transaction object, which also contains the transaction ID
 
POST /rest/tx:123456/fcr:new
  you can use that transaction ID at the beginning of (most) requests to execute that action within the context of the transaction
 
POST /rest/fcr:tx/123456/fcr:commit
  and then save the transaction. Any operations you made within the scope of the transaction will be applied together, meaning if any of them fail, the whole transaction will fail.
 
POST /rest/fcr:tx/123456/fcr:rollback
  roll it back and forget it ever happened

Relationships

See this fcrepo3 discussion: Supporting the Semantic Web and Linked Data

...