Assembly: mindtouch.dream.documentstorage
Class: MindTouch.Dream.HierarchicalDocumentStorageService
SID: sid://mindtouch.com/2009/05/dream/documentstorage
| Verb:Suffix | Description |
| GET: | Get document |
| PUT: | Store document |
| GET:{path-expression} | Get a document fragment |
| POST:{path} | Insert document fragment at path |
| PUT:{path-expression} | Insert or replace document fragment |
| DELETE: | Delete document |
| DELETE:{path-expression} | Del |
<acl>
<users>
<user id="1234>
<name>Bob</name>
</user>
</users>
</acl>
GET:acl/users
GET:acl/users/user[name=bob]
GET:acl/users/user[@id=1234]
GET:acl/users/user[@id=1234]/name
Get a list of all visible storage folders.
| Status | Response Body | Description |
| OK (200) | Folder List | opreation completed successfully |
Added in Aqua
Retrieves the list of files from the storage folder.
| Status | Response Body | Description |
| OK (200) | File List | opreation completed successfully |
Added in Aqua
Add a file to the storage folder.
| Name | Type | Defaut | Description |
| ttl | double? | infinite | Time-to-live in seconds for the uploaded file. |
application/octet-stream
| Response | Response Body | Description |
| Ok (200) | --- | operation completed successfully and a new resource was created |
| Bad Request (400) | text/html | request could not be completed, because of invalid data in the request |
| Not Found (409) | text/html | request could not complete b/c of a conflict; response should contain information about how to resolve the situation (note: usually in response to a PUT action) |
Beryl:
added ttl query parameter
Aqua: added feature
Delete file from the storage folder.
| Response | Response Body | Description |
| OK (200) | --- | opreation completed successfully |
| Bad Request (400) | text/html | request could not be completed, because of invalid data in the request |
| Not Found (404) | text/html | requested resource could not be found; it is not known if it will come back later |
Added in Aqua
Retrieve a file from the storage folder.
| Response | Response Body | Description |
| OK (200) | application/octet-stream | opreation completed successfully |
| Bad Request (400) | --- | request could not be completed, because of invalid data in the request |
| Not Found (404) | --- | requested resource could not be found; it is not known if it will come back later |
Retrieve information about a file from the storage folder.
| Response | Response Body | Description |
| OK (200) | --- (HTTP headers only) | opreation completed successfully |
| Bad Request (400) | --- | request could not be completed, because of invalid data in the request |
| Not Found (404) | --- | requested resource could not be found; it is not known if it will come back later |
Crimson: added feature parameters
Acqua: service added
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |
Copyright © 2011 MindTouch, Inc. Powered by