HTTP List Resources
List available HTTP resources for the Riak node. This can be used by clients to automatically recognize the location of the resources for specific operations.
The standard resources are:
riak_kv_wm_buckets- Bucket Operationsriak_kv_wm_index- HTTP Secondary Indexesriak_kv_wm_link_walker- HTTP Link Walkingriak_kv_wm_mapred- HTTP MapReduceriak_kv_wm_object- Object/Key Operationsriak_kv_wm_ping- HTTP Pingriak_kv_wm_props- HTTP Set Bucket Propertiesriak_kv_wm_stats- HTTP Status
If Search is enabled, the following resources will also be included:
riak_solr_searcher_wm- Solr searchriak_solr_indexer_wm- Solr indexing
Request
GET /
Headers:
Accept-application/jsonortext/html
Response
Normal status codes:
200 OK
Important headers:
Link- all resources that are described in the response body, but in Link form
Example
# Request JSON response curl -i http://localhost:8098 -H "Accept: application/json" HTTP/1.1 200 OK Vary: Accept Server: MochiWeb/1.1 WebMachine/1.9.0 (participate in the frantic) Link: </riak>; rel="riak_kv_wm_link_walker",</mapred>; rel="riak_kv_wm_mapred",</ping>; rel="riak_kv_wm_ping",</riak>; rel="riak_kv_wm_raw",</stats>; rel="riak_kv_wm_stats" Date: Fri, 30 Sep 2011 15:24:35 GMT Content-Type: application/json Content-Length: 143 {"riak_kv_wm_link_walker":"/riak","riak_kv_wm_mapred":"/mapred","riak_kv_wm_ping":"/ping","riak_kv_wm_raw":"/riak","riak_kv_wm_stats":"/stats"} # Request HTML response curl -i http://localhost:8098 -H "Accept: text/html" HTTP/1.1 200 OK Vary: Accept Server: MochiWeb/1.1 WebMachine/1.9.0 (participate in the frantic) Link: </riak>; rel="riak_kv_wm_link_walker",</mapred>; rel="riak_kv_wm_mapred",</ping>; rel="riak_kv_wm_ping",</riak>; rel="riak_kv_wm_raw",</stats>; rel="riak_kv_wm_stats" Date: Fri, 30 Sep 2011 15:24:35 GMT Content-Type: text/html Content-Length: 267 <html><body><ul><li><a href="/riak">riak_kv_wm_link_walker</a></li><li><a href="/mapred">riak_kv_wm_mapred</a></li><li><a href="/ping">riak_kv_wm_ping</a></li><li><a href="/riak">riak_kv_wm_raw</a></li><li><a href="/stats">riak_kv_wm_stats</a></li></ul></body></html>
