Skip to content

Commit

Permalink
addition of link-with-image extension
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewReinbold committed May 1, 2014
1 parent 5f1de5a commit 0ffac5f
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions extensions/link-with-image.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Link with Image

Support decorating link objects with an image attribute.[1]


1. Add an optional property on <code>link</code> objects: <code>image</code>
2. The <code>image</code> property should refer to a valid image URI

```json
{
"collection": {
"version": "1.0",
"href": "http://example.org/navigation",
"links": [
{
"rel": "prev",
"href": "http://example.org/prev",
"prompt": "Previous Item",
"image": "http://example.org/leftarrow.png"
},
{
"rel": "next",
"href": "http://example.org/next",
"prompt": "Next Item",
"image": "http://example.org/rightarrow.png"
}
]
}
}
```

### References
1. [https://groups.google.com/forum/#!topic/collectionjson/CaZyXy-DfKw](https://groups.google.com/forum/#!topic/collectionjson/CaZyXy-DfKw)

0 comments on commit 0ffac5f

Please sign in to comment.