[
https://issues.apache.org/jira/browse/SLING-4848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Devin Chen updated SLING-4848:
------------------------------
Description:
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:
{quote}
{code}
$ curl http://localhost:8080/content/mynode.json {"title":"some
title","sling:resourceType":"foo/bar","jcr:primaryType":"nt:unstructured"}
{code}
{quote}
The JSON string is the output of curl, so I think this would be change to:
{quote}
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}
{quote}
was:
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}
> 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
> Labels: documentation
>
> 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:
> {quote}
> {code}
> $ curl http://localhost:8080/content/mynode.json {"title":"some
> title","sling:resourceType":"foo/bar","jcr:primaryType":"nt:unstructured"}
> {code}
> {quote}
> The JSON string is the output of curl, so I think this would be change to:
> {quote}
> 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}
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)