-
Notifications
You must be signed in to change notification settings - Fork 0
Server RESTful API
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}
- Download a document specified by
-
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
permissionparam is "READ", "WRITE", "BOTH", or "OWNER" - The server will enforce that the
canPropogateparam is either "true" or "false"
-
DELETE
/s2dr/document/${documentId}- Deletes the document specified by
${documentId} - Will return a 200 upon successful deletion
- Deletes the document specified by