Example of a basic update operation.
Project: http://git-wip-us.apache.org/repos/asf/labs-oak/repo Commit: http://git-wip-us.apache.org/repos/asf/labs-oak/commit/3dedecb5 Tree: http://git-wip-us.apache.org/repos/asf/labs-oak/tree/3dedecb5 Diff: http://git-wip-us.apache.org/repos/asf/labs-oak/diff/3dedecb5 Branch: refs/heads/master Commit: 3dedecb58c155e21dcfd533006fd6575fde10974 Parents: f306e3c Author: Jukka Zitting <[email protected]> Authored: Sat Jan 28 23:46:57 2012 +0100 Committer: Jukka Zitting <[email protected]> Committed: Sat Jan 28 23:46:57 2012 +0100 ---------------------------------------------------------------------- oak.xml | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/labs-oak/blob/3dedecb5/oak.xml ---------------------------------------------------------------------- diff --git a/oak.xml b/oak.xml index 1b62295..2e9ec03 100644 --- a/oak.xml +++ b/oak.xml @@ -55,10 +55,21 @@ <para>After starting Oak, use the <application>curl</application> program to access it:</para> - <screen>$ curl http://localhost:8080/ + <informalexample> + <screen>$ curl http://localhost:8080/ {}</screen> + </informalexample> - <para/> + <para>The return value is an empty JSON object since we haven't yet + added any content. Let's fix that by POSTing some properties to the root + resource:</para> + + <informalexample> + <screen>$ culr -d foo=xyz -d bar=123 http://localhost:8080/ +{"foo":"xyz","bar":123}</screen> + </informalexample> + + <para> </para> </section> </chapter> </book> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
