You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Bertrand Delacretaz (JIRA)" <ji...@apache.org> on 2015/07/01 08:21:04 UTC

[jira] [Resolved] (SLING-4848) Command mistake in Sling document

     [ https://issues.apache.org/jira/browse/SLING-4848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bertrand Delacretaz resolved SLING-4848.
----------------------------------------
    Resolution: Fixed
      Assignee: Bertrand Delacretaz

Thanks very much for reporting this, I agree with your suggestion, fixed at http://sling.apache.org/documentation/getting-started/discover-sling-in-15-minutes.html

> 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
>            Assignee: Bertrand Delacretaz
>            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)