angulito opened a new pull request #19:
URL: https://github.com/apache/sling-org-apache-sling-servlets-resolver/pull/19


   This PR adds support to return servlet resolver output in JSON format if the 
path request to the servlet resolver endpoint ends with `.json`. Output example 
for the URL parameter value `/example.myselector.ext`:
   ```
   {
     "candidates": {
       "allowedServlets": [
         "org.apache.sling.pkg.impl.servlets.MyServlet"
       ],
       "deniedServlets": []
     },
     "warningMsg": "Note that in a real Sling request, the path might vary 
depending on the existence of resources that partially match it. This utility 
does not take this into account and uses the first dot to split between path 
and selectors/extension. As a workaround, you can replace dots with underline 
characters, for example, when testing such a URL.",
     "decomposedURL": {
       "path": "/example",
       "extension": "ext",
       "selectors": [
         "myselector"
       ]
     }
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to