Versions Compared

Key

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

...

Code Block
GET /rest/
  list the top-level objects in the repository
 
POST /rest/fcr:properties with an  application/sparql-update request body
 @prefix dc: <http://purl/somewhere/something/1.1>
 INSERT { <info:fedora:/objects/islandora:xyzasdf> <dc:title> "My title" } WHERE {}
GET /rest/objects/sufia:123456789
  list the properties of this node
 
GET /rest/some-other-object-living-at-jcr-root
  there's nothing special about /objects, it's just another part of the path to an object. List the object properties
 
POST /rest/objects/islandora:xyzasdf with request body
  (I seem to remember something about a JSON/XML serialization of "profile" properties...)
 
POST /rest/objects/islandora:xyzasdf with an application/sparql-update request body
 @prefix dc: <http://purl/somewhere/something/1.1>
 INSERT { <info:fedora:/objects/islandora:xyzasdf> <dc:title> "My title" } WHERE {}
POST /rest/objects/islandora:xyzasdf?mixin=fedora:object
  create a new fedora object at /objects/islandora:xyzasdf
 
POST /rest/objects/islandora:xyzasdf/an/arbitrary/hierarchy/to/an/islandora:datastream?mixin=fedora:datastream
  create a new datastream at /objects/islandora:xyzasdf/an/arbitrary/hierarchy/to/an/islandora:datastream in the JCR tree. (Will this create all the intermediate nodes? do I need to do this manually?)
 
PUT /rest/objects/sufia:123456789
  (not sure what this implies.. manipulating properties of the node?)
 
DELETE /rest/objects/sufia:123456789
  Delete the node at /objects/sufia:123456789

...

/rest/{path}/fcr:new
- POST create a new child of QueryParam "mixin" under {path}

Code Block
POST /rest/fcr:new
  create a new child object with an automatically generated unique identifier
 
POST /rest/objects/fcr:new
  create a new child object under /objects with an automatically generated unique identifier
 
POST /rest/objects/sufia:123456789?mixin=fedora:datastream
  create a new child datastream for /objects/sufia:123456789 with an automatically generated unique identifier

...

Code Block
GET /rest/objects/sufia:123456789/THUMBNAIL/fcr:fixity
  retrieve the fixity report for the /objects/sufia:123456789/THUMBNAIL node

Export

/rest/{path}/fcr:export?format={format}
 
- GET an export of the (tree?) under the \{path\}

/rest/{path}/fcr:import?format={format}
- POST an export and it will be deserialized at {path}

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

Relationships

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

...