Versions Compared

Key

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

...

/rest/fcr:nodetypes

  - GET /rest/fcr:nodetypes

  - POST /rest/fcr:nodetypes

Warning

The request body format for updating nodetypes is in flux. For now, and in the immediate future, it uses JCR's CND syntax, but we'd prefer a provider-independent format.

 

 

Code Block
GET /rest/fcr:nodetypes
  get the RDFS serialization of the fcrepo4 content model
 
POST /rest/fcr:nodetypes (with Content-Type: text/cnd)
 
  [fedora:custom-node-type] > [fedora:resource]
    - fedora:thumbnail (string)
 
  update the fcrepo4 content model using JCR CND declarations
  

 

External-ish services

/rest/ fcr:sitemapnamespaces
- GET list the registered namespaces
- POST (with a sparql update payload)

Warning

The underlying storage layer restricts what changes can be made to namespace mappings, and will throw an error if:

- a currently registered namespace prefix or URI is re-registered

- an in-use namespace prefix is renamed

- ??

Code Block
GET /rest/fcr:namespaces
  get a list of registered namespaces
 
POST /rest/fcr:namespaces

 

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..) retrieve a sitemap of all the "fedora:object" in the repository (wrapped as a sitemap index, pointing to other sitemaps..) 

/rest/fcr:search
- GET a basic field search (similar to fcrepo 3.x) that exposes the Modeshape index (somehow.)/rest/ fcr:namespaces
- GET list the registered namespaces
- POST (with a sparql update payload)

/rest/{path/to/object}/fcr:pid
- POST mints a new identifier at the given path