-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
addition of link-with-image extension
- Loading branch information
MatthewReinbold
committed
May 1, 2014
1 parent
5f1de5a
commit 0ffac5f
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |