Assembly: mindtouch.core
Class: MindTouch.Dream.StorageService
SID: http://services.mindtouch.com/dream/...007/03/storage
The Storage service provides a simple storage API. The service is configured to point to a given master folder under which all sub-folders are created. The service only allows one level of sub-folders. A sub-folder gets created when a file is added and removed when the last file is deleted.
| Verb:Suffix | Description |
| GET: | Get a list of all visible storage folders. |
| GET:{folder} | Retrieves the list of files from the storage folder. |
| GET:{folder}/{filename} | Retrieve a file from the storage folder. |
| HEAD:{folder}/{filename} | Retrieve information about a file from the storage folder. |
| PUT:{folder}/{filename} | Add a file to the storage folder. |
| DELETE:{folder}/{filename} | Delete file from the storage folder. |
Retrieves the list of files from the storage folder.
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. |
| 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) |
Delete file from the storage folder.
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 |