Skip to content
estuart edited this page Nov 18, 2015 · 17 revisions
  • POST /s2dr/upload
    • Adds a document to the server
    • Will return a 201 upon successfully saving the document. The response header's "Location" field will hold the URI to access the document.
    • Request Body (must be of type form-data):
    Request Body: { 
        'document': '${documentBitStream}',
        'documentName': '${documentName}' 
    }
    
  • GET /s2dr/document/${documentId}
    • Download a document specified by ${documentId}
    • Will return a 404 if there is not a document with the given ${documentId}
  • PUT /s2dr/document/${documentId}
    • Allows a client to delegate permissions
    • Will return a 200 of the operation was successful
    • Request Body (must be of type JSON(application/json))
    Request Body {
        'permission': '${permission}',
        'clientId': '${clientId}',
        'canPropogate': '${canPropogate}'
    }
    
    • The server will enforce that the permission param is "READ", "WRITE", "BOTH", or "OWNER"
    • The server will enforce that the canPropogate param is either "true" or "false"
  • DELETE /s2dr/document/${documentId}
    • Deletes the document specified by ${documentId}
    • Will return a 200 upon successful deletion

Clone this wiki locally