You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by ju...@apache.org on 2012/02/01 00:50:14 UTC

[2/2] git commit: oak - Example of a basic update operation.

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 <ju...@apache.org>
Authored: Sat Jan 28 23:46:57 2012 +0100
Committer: Jukka Zitting <ju...@apache.org>
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: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org