interesting idea!
yes, you are free to pass templates that match the client's needs at
the point in time. I would say it is important to make sure the server
knows how to return the "right" template at the "right" time. also,
the current design does not have an accommodation to allow clients to
_select_ from a list of templates. but I think you are not worried
about that at this point, right?
mca
http://amundsen.com/blog/
http://twitter.com@mamund
http://mamund.com/foaf.rdf#me
please keep me posted on your progress with this implementation. it
sounds like a very good test of the media type design.
mca
http://amundsen.com/blog/
http://twitter.com@mamund
http://mamund.com/foaf.rdf#me
"template" : { "data" : [ { "name" : "username", "value" : "", "prompt" : "User name", "required" : "true" }, { "name" : "country", "value" : "", "prompt" : "Country", "multiple" : "false", "options" : [ { "text" : "Germany", "value" : "de" }, { "text" : "Poland", "value" : "pl" } ] }, { "name" : "talents", "value" : "", "prompt" : "Talents", "required" : "true", "multiple" : "true", "options" : [ { "text" : "Swimming", "value" : "swimming" }, { "text" : "Climbing", "value" : "climbing" }, { "text" : "Socializing", "value" : "socializing" } ] } ] }
And Values if multiple is true.
{"name" : "country", "value" : ["Germany", "Poland"], ...}
"data" : [ {"name" : "username", "value" : "JDoe", "prompt" : "User name"}, {"name" : "country", "value" : "Germany", "prompt" : "Country"}, {"name" : "talents", "array" : ["swimming", "climbing"], "prompt" : "Talents"} ]
--
You received this message because you are subscribed to the Google Groups "Collection+JSON" group.
To unsubscribe from this group and stop receiving emails from it, send an email to collectionjso...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.