You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2015/07/01 08:18:43 UTC

svn commit: r1688556 - /sling/site/trunk/content/documentation/getting-started/discover-sling-in-15-minutes.mdtext

Author: bdelacretaz
Date: Wed Jul  1 06:18:43 2015
New Revision: 1688556

URL: http://svn.apache.org/r1688556
Log:
SLING-4848 - move json output to the right place

Modified:
    sling/site/trunk/content/documentation/getting-started/discover-sling-in-15-minutes.mdtext

Modified: sling/site/trunk/content/documentation/getting-started/discover-sling-in-15-minutes.mdtext
URL: http://svn.apache.org/viewvc/sling/site/trunk/content/documentation/getting-started/discover-sling-in-15-minutes.mdtext?rev=1688556&r1=1688555&r2=1688556&view=diff
==============================================================================
--- sling/site/trunk/content/documentation/getting-started/discover-sling-in-15-minutes.mdtext (original)
+++ sling/site/trunk/content/documentation/getting-started/discover-sling-in-15-minutes.mdtext Wed Jul  1 06:18:43 2015
@@ -55,11 +55,13 @@ To create a content node (nodes are a [J
 
 The resulting node can be seen at [http://localhost:8080/content/mynode.html](http://localhost:8080/content/mynode.html.path), or as json format under [http://localhost:8080/content/mynode.json](http://localhost:8080/content/mynode.json). Lets try with cURL:
 
+    $ curl http://localhost:8080/content/mynode.json
 
-    $ curl http://localhost:8080/content/mynode.json {"title":"some title","sling:resourceType":"foo/bar","jcr:primaryType":"nt:unstructured"}
+This returns the properties of the `/content/mynode` in JSON format as we have created it above. 
 
+    {"title":"some title","sling:resourceType":"foo/bar","jcr:primaryType":"nt:unstructured"}
 
-This returns the properties of the `/content/mynode` in JSON format as we have created it above. The additional property `jcr:primaryType` is a special JCR property indicating the JCR primary node type.
+The additional property `jcr:primaryType` is a special JCR property added by the content repository, indicating the JCR primary node type.
 
 *Monitoring requests: Sling provides a simple tool (an OSGi console plugin) to monitor HTTP requests, which helps understand how things work internally. See the [Monitoring Requests]({{ refs.monitoring-requests.path }}) page for details.*
 
@@ -205,4 +207,4 @@ And upload it again to replace the previ
     curl -u admin:admin -T html.esp http://localhost:8080/apps/foo/bar/html.esp
 
 
-The [http://localhost:8080/content/mynode.html](http://localhost:8080/content/mynode.html), once refreshed, now shows the blue headline and logo, and this layout also applies to any node created with *sling:resourceType=foo/bar*.
\ No newline at end of file
+The [http://localhost:8080/content/mynode.html](http://localhost:8080/content/mynode.html), once refreshed, now shows the blue headline and logo, and this layout also applies to any node created with *sling:resourceType=foo/bar*.