You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ol...@apache.org on 2015/02/23 14:19:53 UTC

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

Author: olli
Date: Mon Feb 23 13:19:53 2015
New Revision: 1661661

URL: http://svn.apache.org/r1661661
Log:
remove line breaks/new lines in curl commands

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=1661661&r1=1661660&r2=1661661&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 Mon Feb 23 13:19:53 2015
@@ -56,8 +56,7 @@ 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    
-    {"title":"some title","sling:resourceType":"foo/bar","jcr:primaryType":"nt:unstructured"}
+    $ 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. The additional property `jcr:primaryType` is a special JCR property indicating the JCR primary node type.
@@ -176,8 +175,7 @@ Upload it so that it is used to render r
 Create the header node:
 
 
-    curl -u admin:admin -F"sling:resourceType=foo/header" \    
-        -F"headline=Hello, Sling world" http://localhost:8080/content/header
+    curl -u admin:admin -F"sling:resourceType=foo/header" -F"headline=Hello, Sling world" http://localhost:8080/content/header
 
 
 Upload the logo that the script uses (using sling.jpg or another logo in the current directory):