Devin Chen created SLING-4848:
---------------------------------
Summary: Command mistake in Sling document
Key: SLING-4848
URL: https://issues.apache.org/jira/browse/SLING-4848
Project: Sling
Issue Type: Bug
Components: Documentation
Reporter: Devin Chen
Priority: Minor
In the document of "Discover Sling in 15
minutes"(http://sling.apache.org/documentation/getting-started/discover-sling-in-15-minutes.html)
, below command is not right:
{code}
$ curl http://localhost:8080/content/mynode.json {"title":"some
title","sling:resourceType":"foo/bar","jcr:primaryType":"nt:unstructured"}
{code}
The JSON string is the output of curl, so I think this would be change to:
The resulting node can be seen at http://localhost:8080/content/mynode.html, or
as json format under http://localhost:8080/content/mynode.json. Lets try with
cURL:
{code}
curl http://localhost:8080/content/mynode.json
{code}
This returns the properties of the /content/mynode in JSON format as we have
created it above.
{code}
{"title":"some
title","sling:resourceType":"foo/bar","jcr:primaryType":"nt:unstructured"}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)