Versions Compared

Key

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

...

Excerpt

Side-load a resource

Before invoking this method you must copy your conforming OCFL object into your OCFL repository.  Note the path to the new resource must match the value of the "id" field in the inventory.json file in your object root.  For example, assuming that your repository's base URI is http://localhost:8080/rest and  and the object root's inventory.json file's "id" field  equals info:fedora/path/to/new/resource you would post to http://localhost:8080/rest/path/to/new/resource/fcr:reindex.     For the details on the structure of OCFL objects expected see Fedora OCFL Object Structure.

Request URI: /path/to/new/resource/fcr:reindex

Methods: POST


Status
titlePOST
Make Fedora aware of  a resource directly copied to your underlying OCFL. 

Example:

Code Block
curl -X POST http://localhost:8080/rest/path/to/resource/fcr:reindex

Response:

Code Block
HTTP/1.1 204 No Content

Status:

Status
subtletrue
colourGreen
title204
  No Content: Success

Status
subtletrue
colourRed
title400
Bad request: The specified object could not be side-loaded because the resource was not found in the OCFL or the OCFL object is invalid.  For the definition of valid objects, see Fedora OCFL Object Structure.

Status
subtletrue
colourRed
title409
Conflict:   The specified resource already exists.

...