Verify ingest of OCFL object.
Only verifies against latest version of any given manifest entry.
URL : /verify/{id}
Method : POST
Data constraints
Provide key checksum pairs of entire OCFL manifest.
{
"[key]": "[checksum]"
}
Data example
All latest versions of manifest entries must be included.
Will not verify previous versions in OCFL manifest
{
"data/400005076.mp3": "610e9c6768c1e41b0f997776861308a1",
"metadata/400005074_aes57.xml": "1d50396a886425b9d8c7e50461d7b523",
"data/400005073.wav": "23a8548521d63065d58dcbafb82dbeb3",
"metadata/400005072_textMD.xml": "6f559e7352abee9d8972447eda23cc84",
"descriptor/400005067_mets.xml": "bea2ca7c6ec1f1b70ef85265aa396dbd",
"metadata/400005076_aes57.xml": "563295c50220c295e317cc6f5c37ee8b",
"metadata/400005073_aes57.xml": "1f982931f12de9309157b4e891e0abc7",
"metadata/400005079_containerMD.xml": "d5504e692af05bceb4e4760b3700c07f",
"data/400005069.xml": "ece0d3d596258f4215c3bc35b0b36e34",
"data/400005078.mp3": "1db61ef8c9f1243b80837d52895d688b",
"data/400005074.wav": "327b95b2c32f1fa36436c0a12ae5bbf8",
"data/400005079.zip": "4b59de5306cfa1e3797febec199e9708",
"metadata/400005070_aes57.xml": "db0b43dbf03894bbdb1ddb53768448d9",
"data/400005072.adl": "a6e126e393d9917e300394d57756ffac",
"metadata/400005078_aes57.xml": "ed97471a97dc39a13b951afe7a34fb71",
"data/400005070.wav": "cfd9b3e993c7b030f4807688cddbd77c",
"data/400005077.mp3": "61233f404ce85c80a17f521cab99feb5",
"metadata/400005067_structureMap.xml": "fa511483e64be6ef2b7c9e07543df158",
"metadata/400005069_textMD.xml": "94c551c460d935f3148ebbd06d5412cb",
"metadata/400005071_aes57.xml": "cb81e8172c153649be8e5e59236f43c3",
"metadata/400005077_aes57.xml": "67aba5ae05507a320f701de7adb60633",
"data/400005075.adl": "60da72142a630e223a205877e29be9c9"
}
Condition : If object is completely verified.
Code : 200 OK
Condition : If something went wrong on server.
Code : 500 INTENRAL SERVER ERROR
Content : Exception message
Condition : If request body malformed.
Code : 400 Bad Request
Content : Exception message
Condition : If inventory.json not found.
Code : 404 NOT FOUND
Content : Exception message
Condition : Verification failed
Code : 409 CONFLICT
Content example
{
"data/400005076.mp3": {
"error": "Missing input checksum"
},
"metadata/400005074_aes57.xml": {
"error": "Unknown key"
},
"data/400005073.wav": {
"error": "S3 exception message"
},
"metadata/400005072_textMD.xml": {
"error": "Checksums do not match",
"expected": "d5504e692af05bceb4e4760b3700c07d",
"actual": "d5504e692af05bceb4e4760b3700c07f"
},
"metadata/400005079_containerMD.xml": {
"error": "Checksums do not match",
"expected": "d5504e692af05bceb4e4760b3700c07d",
"actual": "d5504e692af05bceb4e4760b3700c07f"
},
"data/91234314.pdf": {
"error": "Not found in inventory manifest",
}
}
Verify update of OCFL object.
Only verifies against latest version of any given manifest entry.
URL : /verify/{id}/update
Method : POST
Data constraints
Provide key checksum pairs of updated OCFL manifest entries.
{
"[key]": "[checksum]"
}
Data example
Update manifest entries must be included.
{
"data/400005076.mp3": "610e9c6768c1e41b0f997776861308a1",
"metadata/400005074_aes57.xml": "1d50396a886425b9d8c7e50461d7b523",
"data/400005073.wav": "23a8548521d63065d58dcbafb82dbeb3",
"metadata/400005072_textMD.xml": "6f559e7352abee9d8972447eda23cc84",
"descriptor/400005067_mets.xml": "bea2ca7c6ec1f1b70ef85265aa396dbd",
"metadata/400005076_aes57.xml": "563295c50220c295e317cc6f5c37ee8b",
"metadata/400005073_aes57.xml": "1f982931f12de9309157b4e891e0abc7",
"metadata/400005079_containerMD.xml": "d5504e692af05bceb4e4760b3700c07f",
"data/400005069.xml": "ece0d3d596258f4215c3bc35b0b36e34",
"data/400005078.mp3": "1db61ef8c9f1243b80837d52895d688b",
"data/91234314.pdf": "2143c243b80837d5283242395d6ac65d"
}
Condition : If updated checksums verified.
Code : 200 OK
Condition : If something went wrong on server.
Code : 500 INTENRAL SERVER ERROR
Content : Exception message
Condition : If request body malformed.
Code : 400 Bad Request
Content : Exception message
Condition : If inventory.json not found.
Code : 404 NOT FOUND
Content : Exception message
Condition : Verification failed
Code : 409 CONFLICT
Content example
{
"metadata/400005074_aes57.xml": {
"error": "Unknown key"
},
"data/400005073.wav": {
"error": "S3 exception message"
},
"metadata/400005072_textMD.xml": {
"error": "Checksums do not match",
"expected": "d5504e692af05bceb4e4760b3700c07d",
"actual": "d5504e692af05bceb4e4760b3700c07f"
},
"metadata/400005079_containerMD.xml": {
"error": "Checksums do not match",
"expected": "d5504e692af05bceb4e4760b3700c07d",
"actual": "d5504e692af05bceb4e4760b3700c07f"
},
"data/91234314.pdf": {
"error": "Not found in inventory manifest",
}
}