From c569a4c58cf29778df28392b48e20ffebdbc518e Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 19 May 2013 01:14:42 +0200 Subject: o Initial import of the Scala version of the Collection+JSON explorer. --- .../examples/from-spec/collection.collection+json | 66 ++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 src/main/resources/public/examples/from-spec/collection.collection+json (limited to 'src/main/resources/public/examples/from-spec/collection.collection+json') diff --git a/src/main/resources/public/examples/from-spec/collection.collection+json b/src/main/resources/public/examples/from-spec/collection.collection+json new file mode 100644 index 0000000..db57931 --- /dev/null +++ b/src/main/resources/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"} + + ] + } + } +} -- cgit v1.2.3