Product tutorials, how-tos, and fully-documented APIs.

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:

    If Search is enabled, the following resources will also be included:

    Request

    GET /
    

    Headers:

    Response

    Normal status codes:

    Important headers:

    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>