You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "David Nuescheler (JIRA)" <ji...@apache.org> on 2008/07/17 10:31:32 UTC

[jira] Created: (SLING-574) include fully qualified urls in json repsonses

include fully qualified urls in json repsonses
----------------------------------------------

                 Key: SLING-574
                 URL: https://issues.apache.org/jira/browse/SLING-574
             Project: Sling
          Issue Type: Improvement
          Components: Servlets Get
            Reporter: David Nuescheler


based on the conversation here:

http://markmail.org/message/fls3gp3b45shvw7q

i would like to suggest to include a sling:src property into nodes in the json responses
this would mean that a node that was returned as

mynode: {
 title:"my title",
 text:"text"
}

would not be returned as 

mynode: {
 sling:src:"http://localhost:7402/content/deep/mynode",
 title:"my title",
 text:"text"
}

i am not sure if this should go into the standard json rendition but i think it really could.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SLING-574) include fully qualified urls in json repsonses

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12659661#action_12659661 ] 

Felix Meschberger commented on SLING-574:
-----------------------------------------

I think this is an interesting proposal, but I would adapt it a bit:

* The property would be called "sling:location" to indicate the similar purpose as the HTTP Location Header
* The value would be a URI relative to the request URL just like the RedirectServlet creates relative Location header values

> include fully qualified urls in json repsonses
> ----------------------------------------------
>
>                 Key: SLING-574
>                 URL: https://issues.apache.org/jira/browse/SLING-574
>             Project: Sling
>          Issue Type: Improvement
>          Components: Servlets Get
>            Reporter: David Nuescheler
>
> based on the conversation here:
> http://markmail.org/message/fls3gp3b45shvw7q
> i would like to suggest to include a sling:src property into nodes in the json responses
> this would mean that a node that was returned as
> mynode: {
>  title:"my title",
>  text:"text"
> }
> would not be returned as 
> mynode: {
>  sling:src:"http://localhost:7402/content/deep/mynode",
>  title:"my title",
>  text:"text"
> }
> i am not sure if this should go into the standard json rendition but i think it really could.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.