Side-load a resourceBefore 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 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
Make Fedora aware of a resource directly copied to your underlying OCFL. Request Headers: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 |
---|
subtle | true |
---|
colour | Green |
---|
title | 204 |
---|
| No Content Status |
---|
subtle | true |
---|
colour | Red |
---|
title | 400 |
---|
| 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 |
---|
subtle | true |
---|
colour | Red |
---|
title | 409 |
---|
| Conflict: The specified resource already exists. |