...
POST /api/repair/requests/<id>/cleaned
POST /api/repair/requests/<id>/replaced
POST /api/repair/requests/<id>/audit
POST /api/repair/requests/<id>/fulfill
Fulfillment API
GET /api/repair/fulfillments?<to=?,from=?,status=?>
...
PUT /api/repair/fulfillments/<id>/ready
POST /api/repair/fulfillments/<id>/cleaned
POST /api/repair/fulfillments/<id>/status
PUT /api/repair/fulfillemnts/<id>/complete
...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "depositor": "depositor-with-corrupt-collection", "collection": "collection-with-corrupt-files", "files": ["file_0", "file_1", ..., "file_n"] } |
Repair
...
A repair structure, returned by the Ingest server after a repair request is received
Code Block | ||||
---|---|---|---|---|
| ||||
{ "id": 1, "fulfillment": 3, "statuscreatedAt": "2017-03-15T19:22:29Z", "updatedAt": "requested|fulfilling|repaired|failed2017-03-15T19:22:29Z", "requesterto": "node-with-corrupt-file", "requester": "user-from-node", "depositor": "depositor-with-corrupt-collection", "fulfillment": 3, "collection": "collection-with-corrupt-files", "status": "requested|fulfilling|repaired|failed", "audit": "pre|auditing|success|fail", "cleaned": true|false, "replaced": true|false, "files": ["file_0", "file_1", ..., "file_n"] } |
Fulfillment
...
A fulfillment for a repair, returned by the Ingest server after a node notifies it can fulfill a repair request. Credentials are only visible to the requesting node and administrators.
Code Block | ||||
---|---|---|---|---|
| ||||
{ "id": 3, "repair": 1, "createdAt": "2017-03-15T19:22:29Z", "updatedAt": "2017-03-15T19:22:29Z", "to": "node-with-corrupt-file", "from": "node-with-valid-file", "statustype": "staging|ready|complete|failedace|node-to-node|ingest", "credentials": { ... }, "repairstatus": 1 "staging|ready|complete|failed", "cleaned" true|false } |
Credentials ACE
Code Block | ||||
---|---|---|---|---|
| ||||
{ "type": "ace", "api-key": "ace-api-key", "url": "https://node_v/ace-am" # ?? Not sure if really needed } |
...