Retrieve the content of a site property
| Name | Type | Description |
| key | string | A unique identifier for a property that is obtained through GET:site/properties |
| Name | Type | Description |
| authenticate | bool? | Force authentication for request (default: false) |
| redirects | int? | If zero, do not follow page redirects. |
| Name | Value | Description |
| OK | 200 | The request completed successfully |
| Bad Request | 400 | Invalid input parameter or request body |
| Forbidden | 403 | ADMIN access is required |
| Not Found | 404 | Requested property could not be found |
Response is the etag, content-length, content-type, and body of the property.
The following code authenticates and retrieves the value of a text based site property named 'foo' .
Plug p = Plug.New("http://devwiki/@api/deki");
p.At("users", "authenticate")
.WithCredentials("sysop", "password").Get();
string val = p.At("site", "properties", "foo")
.Get().AsText( Add notes about requirements or config values
The following command retrieves a site property "foo":
curl -u admin:password -i http://mindtouch.address/@api/deki/site/properties/foo
Example output of retrieving the site property value listed here.
Content-Type: text/plain
bar