Skip to content

Commit

Permalink
Add Riak day 1 homework
Browse files Browse the repository at this point in the history
  • Loading branch information
peferron committed Nov 11, 2016
1 parent a319d3e commit fb42070
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
Binary file added riak/antibiotics.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions riak/homework.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Riak homework

## Day 1

### 1.

```
curl -i -X PUT "https://localhost:10038/riak/animals/polly" \
-H "Link: </riak/photos/polly.jpg>; riaktag=\"photo\"" \
-d '{"nickname": "Sweet Polly Purebred", "breed": "Purebred"}'
```

### 2.

```
curl -i -X PUT "https://localhost:10038/riak/cats/takkun.svg" \
-H "Content-Type: image/svg+xml" \
--data-binary @takkun.svg
```

### 3.

```
curl -i -X PUT "https://localhost:10038/riak/medicines/antibiotics" \
-H "Content-Type: image/jpeg" \
-H "Link: </riak/animals/ace>; riaktag=\"treats\"" \
--data-binary @antibiotics.jpg
```
16 changes: 16 additions & 0 deletions riak/takkun.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fb42070

Please sign in to comment.