I ran
curl -v -X PUT http://localhost:10018/riak/animals/polly?returnbody=ture -H "Content-Type: application/json" -d '{"nickname" : "Sweet Polly Purebred", "breed" : "Purebred"}'
When I fetch /riak/animals/polly I get the expected:
- {
"nickname": "Sweet Polly Purebred",
"breed": "Purebred"
}
I have /riak/photos/polly.png.
I want to link polly to point to the photos. I tried:
curl -X PUT http://localhost:10018/riak/animals/polly -H "Content-Type: application/json" -H "Link </riak/photos/polly.png; riaktag=\"contains\""
and now when I fetch/riak/animals/polly, an empty page appears.
How do I link /riak/animals/polly to /riak/photos/polly.png?