-
-
Save camshaft/4067585 to your computer and use it in GitHub Desktop.
Idea for using src + HTTP HEAD or GET with Accept headers for embedding items into Collection+JSON
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
{ "collection" : | |
{ | |
"version" : "1.0", | |
"href" : "http://example.org/friends/", | |
"items" : | |
[ | |
{ | |
"href" : "...", | |
"data" : | |
[ | |
{"name" : "avatar", "value": "Photo of Mike", "src" : "http://photos.org/mike"}, | |
{"name" : "name", "value" : "Mike Admunsen"}, | |
{"name" : "bio", "value" : "Once upon a time...."}, | |
{"name" : "inline-text", "value": "Inline Text Example", "src" : "http://text.net/mike-msg"} | |
], | |
"links" : | |
[ | |
{"rel" : "profile-page", "href" : "http://profile.ord/mike"}, | |
{"rel" : "external-text", "href" : "http:/text.net/mike-msg"} | |
] | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment