riak / doc / raw-http-howto.txt

Diff from to

doc/raw-http-howto.txt

 
    $ curl -X PUT -H "content-type: application/json" \
      http://127.0.0.1:8098/raw/example \
-     --data "{\"props\":{\"allow_mult\":true}}
+     --data "{\"props\":{\"allow_mult\":true}}"
    $ curl -X PUT -H "content-type: text/plain" \
      http://127.0.0.1:8098/raw/example/sib --data "one thing"
    $ curl -X PUT -H "content-type: text/plain" \
 header to multipart/mixed.  Riak will hand back each of the versions
 as a separate part of a multipart/mixed document:
 
-   $ curl -i -H "accept: multipart/mixed" http://127.0.0.1:8098/raw/sib/one
+   $ curl -i -H "accept: multipart/mixed" http://127.0.0.1:8098/raw/example/sib
    HTTP/1.1 300 Multiple Choices
    X-Riak-Vclock: a85hYGBgz2DKBVJszUlMCj+kMpgSGfNYGVy/xR/hg0iwMPg9FYMK2yELvzwvhEU1yyfGjVDh4hUIYXbJhmaocB5CGGgps/qNZEz1QAm2fc6lyNZmAQA=
    Vary: Accept, Accept-Encoding
    
    --IASZJsIrb8ykNEc1fuue9LitToc
    Content-Type: text/plain
-   Link: </raw/sib>; rel="up"
+   Link: </raw/example>; rel="up"
    Etag: 6YUKo8vXvtBAXD0Hjy8crv
    Last-Modified: Fri, 30 Oct 2009 18:12:03 GMT
    
-   goodbye
+   one thing
    --IASZJsIrb8ykNEc1fuue9LitToc
    Content-Type: text/plain
-   Link: </raw/sib>; rel="up"
+   Link: </raw/example>; rel="up"
    Etag: 4XcBgFOm0Ab517wWjNXeWc
    Last-Modified: Fri, 30 Oct 2009 18:11:58 GMT
    
-   hello
+   another
    --IASZJsIrb8ykNEc1fuue9LitToc--
 
 To resolve the conflict, just issue another PUT, with the body you
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.