diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2013-05-19 01:14:42 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2013-05-19 10:21:38 +0200 |
commit | c569a4c58cf29778df28392b48e20ffebdbc518e (patch) | |
tree | 5148d1bd03b8efbb281fb4c4dc66d63cc38cf1c9 /src/main/resources/public/examples/from-spec/item.collection+json | |
download | collection-json-explorer-scala-c569a4c58cf29778df28392b48e20ffebdbc518e.tar.gz collection-json-explorer-scala-c569a4c58cf29778df28392b48e20ffebdbc518e.tar.bz2 collection-json-explorer-scala-c569a4c58cf29778df28392b48e20ffebdbc518e.tar.xz collection-json-explorer-scala-c569a4c58cf29778df28392b48e20ffebdbc518e.zip |
o Initial import of the Scala version of the Collection+JSON explorer.
Diffstat (limited to 'src/main/resources/public/examples/from-spec/item.collection+json')
-rw-r--r-- | src/main/resources/public/examples/from-spec/item.collection+json | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/main/resources/public/examples/from-spec/item.collection+json b/src/main/resources/public/examples/from-spec/item.collection+json new file mode 100644 index 0000000..8f93af6 --- /dev/null +++ b/src/main/resources/public/examples/from-spec/item.collection+json @@ -0,0 +1,26 @@ +{ "collection" : + { + "version" : "1.0", + "href" : "http://example.org/friends/", + + "links" : [ + {"rel" : "feed", "href" : "http://example.org/friends/rss"}, + {"rel" : "queries", "href" : "http://example.org/friends/?queries"}, + {"rel" : "template", "href" : "http://example.org/friends/?template"} + ], + + "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"} + ] + } + ] + } +} |