Assembly: mindtouch.core
Class: MindTouch.Dream.DirectoryService
SID: http://services.mindtouch.com/dream/...7/03/directory
The Directory services makes it easy to store XML records. It also provides a pub/sub mechanism to distribute state over multiple services automatically.
| Verb:Suffix | Description |
| GET:records/ | Get a list of all stored records. |
| GET:records/{name} | Retrieve the value stored with a specific record. |
| PUT:records/{name} | Add a new record or update an existing record with the provide value. |
| DELETE:records/{name} | Delete record from directory. |
| POST:subscribe/ | Subscribe to change notifications. |
| POST:unsubscribe/ | Unsubscribe to change notifications. |
<subscription> <uri>WHERE NOTIFICATIONS GET SENT TO</uri> </subscription>
<notification> <from>SOURCE URI</from> <action>ADD</action> <record> <name>ENTRY NAME</name> <expiration>WHEN THE RECORD WILL BE AUTO-DELETED</expiration> <value>NESTED XDOC</value> </record> </notification>
<notification> <from>SOURCE URI</from> <action>DELETE</action> <record> <name>ENTRY NAME</name> </record> </notification>
<record> <name>record name</name> <expiration>expiration date/time</expiration> <value>nested XML document</value> </record>
<list> <record> <name>record name</name> <expiration>expiration date/time</expiration> <value>...</value> </record> ... </list>
This service does not require a configuration.
<config> </config>
Get list of all records.
| Status | Response Body | Description |
| 200 | DirectoryList | The list of DirectoryRecords |
Aqua: feature added
Retrieve the value stored with a specific record.
| Status | Response Body | Description |
| 200 | DirectoryRecord | The value stored with the given record |
| 404 | Html | Html error page |
Aqua: feature added
Add a new record or update an existing record with the provide value.
| Name | Type | Default
|
Description |
| ttl | int | -1 | time-to-live in seconds for the added record |
XDoc
| Status | Response Body | Description |
| 200 | --- | n/a |
Aqua: feature added
Delete record from directory.
| Status | Response Body | Description |
| 200 | none | n/a |
Aqua: feature added
Subscribe to change notifications.
Subscription
| Status | Response Body | Description |
| 200 | --- | n/a |
Aqua: feature added
Unsubscribe to change notifications.
Subscription
| Status | Response Body | Description |
| 200 | none | n/a |
Aqua: feature added