summaryrefslogtreecommitdiff
path: root/public/examples/from-spec/collection.collection+json
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-06-29 10:36:01 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2012-06-29 10:36:01 +0200
commit4ed7271b1eca560fbad60c240cad23e85ac286f8 (patch)
tree0fc255912ec36735afe17c8870040d4ad768593c /public/examples/from-spec/collection.collection+json
parentc04cb305f45e39b71a7bdd51f91e8076eae86481 (diff)
downloadcollection-json-explorer-4ed7271b1eca560fbad60c240cad23e85ac286f8.tar.gz
collection-json-explorer-4ed7271b1eca560fbad60c240cad23e85ac286f8.tar.bz2
collection-json-explorer-4ed7271b1eca560fbad60c240cad23e85ac286f8.tar.xz
collection-json-explorer-4ed7271b1eca560fbad60c240cad23e85ac286f8.zip
o Adding examples from the specification.
Diffstat (limited to 'public/examples/from-spec/collection.collection+json')
-rw-r--r--public/examples/from-spec/collection.collection+json66
1 files changed, 66 insertions, 0 deletions
diff --git a/public/examples/from-spec/collection.collection+json b/public/examples/from-spec/collection.collection+json
new file mode 100644
index 0000000..db57931
--- /dev/null
+++ b/public/examples/from-spec/collection.collection+json
@@ -0,0 +1,66 @@
+{ "collection" :
+ {
+ "version" : "1.0",
+ "href" : "http://example.org/friends/",
+
+ "links" : [
+ {"rel" : "feed", "href" : "http://example.org/friends/rss"}
+ ],
+
+ "items" : [
+ {
+ "href" : "http://example.org/friends/jdoe",
+ "data" : [
+ {"name" : "full-name", "value" : "J. Doe", "prompt" : "Full Name"},
+ {"name" : "email", "value" : "jdoe@example.org", "prompt" : "Email"}
+ ],
+ "links" : [
+ {"rel" : "blog", "href" : "http://examples.org/blogs/jdoe", "prompt" : "Blog"},
+ {"rel" : "avatar", "href" : "http://examples.org/images/jdoe", "prompt" : "Avatar", "render" : "image"}
+ ]
+ },
+
+ {
+ "href" : "http://example.org/friends/msmith",
+ "data" : [
+ {"name" : "full-name", "value" : "M. Smith", "prompt" : "Full Name"},
+ {"name" : "email", "value" : "msmith@example.org", "prompt" : "Email"}
+ ],
+ "links" : [
+ {"rel" : "blog", "href" : "http://examples.org/blogs/msmith", "prompt" : "Blog"},
+ {"rel" : "avatar", "href" : "http://examples.org/images/msmith", "prompt" : "Avatar", "render" : "image"}
+ ]
+ },
+
+ {
+ "href" : "http://example.org/friends/rwilliams",
+ "data" : [
+ {"name" : "full-name", "value" : "R. Williams", "prompt" : "Full Name"},
+ {"name" : "email", "value" : "rwilliams@example.org", "prompt" : "Email"}
+ ],
+ "links" : [
+ {"rel" : "blog", "href" : "http://examples.org/blogs/rwilliams", "prompt" : "Blog"},
+ {"rel" : "avatar", "href" : "http://examples.org/images/rwilliams", "prompt" : "Avatar", "render" : "image"}
+ ]
+ }
+ ],
+
+ "queries" : [
+ {"rel" : "search", "href" : "http://example.org/friends/search", "prompt" : "Search",
+ "data" : [
+ {"name" : "search", "value" : ""}
+ ]
+ }
+ ],
+
+ "template" : {
+ "data" : [
+ {"name" : "full-name", "value" : "", "prompt" : "Full Name"},
+ {"name" : "email", "value" : "", "prompt" : "Email"},
+ {"name" : "blog", "value" : "", "prompt" : "Blog"},
+ {"name" : "avatar", "value" : "", "prompt" : "Avatar"}
+
+ ]
+ }
+ }
+}