After looking into it more, I'm kinda surprised that you didn't go with the 
more Sling/ RESTful approach of 

$ curl -s -u admin:admin 
http://localhost:8080/org/apache/sling/capabilities.1.json | jq .

{
    "osgi": {
      "framework.bundle.symbolic.name": "org.apache.felix.framework",
      "framework.bundle.version": "5.6.10"
    },
    "jvm": {
      "java.specification.version": "1.8",
      "java.vm.version": "25.171-b11",
      "java.vm.vendor": "Oracle Corporation"
    }
}

You could then control access via ACL and just have the resourceType report 
itself rather then everything.


- Jason

On Wed, Jun 20, 2018, at 9:38 AM, Bertrand Delacretaz wrote:
> Hi,
> 
> I've been working on a (very simple) module to create a "capabilities"
> endpoint, where a Sling instance can let HTTP clients know about its
> version levels, presence or absence of certain services etc.
> 
> It's at https://github.com/apache/sling-whiteboard/tree/master/capabilities
> and if no one is opposed I'll move it to its own module and make a
> first release later this week.
> 
> Feedback is welcome.
> 
> -Bertrand

Reply via email to