Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: first hack at restored content

...

  • Purpose: Allows the repository to send content to the Bridge for deposit into the DDP
  • Request: POST /bridge/deposit/{deposit-id}
  • Request Body: JSON 

    Code Block
    {
      "checksum-type" : "",         # Checksum type applies to all file checksums (can be one of: MD5, SHA-256, SHA-512)
      "deposit-id" : {
        "file-1-id" : {
          "url" : "",               # This could be a relative URL to the file, based on the otm-url provided in the bridge registration
          "checksum" : ""
        },                          # Additional files are added here                                
      }
    }


  • Response Code: 201 (on success)

...

  • Purpose: Allows the repository to ask for status of a content restore action
  • Request: GET /bridge/restore/{restore-id}
  • Response Body: JSON 

    Code Block
    { "status" : "" }   # This could include a top level status or a per-file status (or both)


  • Response Code: 200 (on success)

Get Restored Content

  • Purpose: Allows the repository to retrieve restored content
  • Request: GET /bridge/restore/{restore-id}/{file-id}
  • Response: restored file content

  • Response Code: 200 (on success)
  • Response Headers: etag

Calls available to the DDP

...