Versions Compared

Key

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

...

  • application/n3 (or text/rdf+n3 or text/n3)
  • text/turtle
  • application/n-triples
  • text/trig
  • application/xml+rdf
  • application/json+rdf
  • application/n-quads

Objects

 Retrieve or manipulate a node in the Fedora 4 repository. 

...

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

 

Binary Content

/rest/{path}/ fcr:content

- GET the bytes from {path}/ jcr:content/jcr:data
- POST create a new  nt:file  at {path} with a binary value of the request entity
- PUT mutate the binary value of the  nt:file  at {path}
- DELETE remove the  jcr:content  child from the node at {path}

...

Code Block
GET /rest/objects/sufia:123456789/fcr:versions
  get the version history of /objects/sufia:123456789 fedora object (not sure what the response looks like, though)
 
GET /rest/objects/sufia:123456789/THUMBNAIL/fcr:versions
  get the version history of the THUMBNAIL datastream
 
POST /rest/objects/sufia:123456789/THUMBNAIL/fcr:versions/XYZ
  tag the current verison of /objects/sufia:123456789/THUMBNAIL with the version label XYZ
GET /rest/objects/sufia:123456789/THUMBNAIL/fcr:content?version=XYZ
  get the jcr:content@jcr:data of  /objects/sufia:123456789/THUMBNAIL with version id 'XYZ'
 
GET /rest/objects/sufia:123456789/fcr:describe?version=XYZ
  get the profile/description of /objects/sufia:123456789 with version id 'XYZ'

Export

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

...

ModeShape REST API: https://docs.jboss.org/author/display/MODE/REST+Service+3.x#RESTService3.x-5.Updateanodeoraproperty

External-ish services

/rest/fcr:sitemap
- GET retrieve a sitemap of all the "fedora:object" in the repository (wrapped as a sitemap index, pointing to other sitemaps..) 

...