Hi Patrique,

On Thu, 2019-04-18 at 14:19 +0000, Patrique Legault wrote:
> Just out of curiosity will OSGi annotations used within Apache Sling
> integrate with JAX-RS annotations in order to create multiple
> POST/PUT/DELETE or GET endpoints within the same servlet?
> 
> I believe this would give the server even more flexibility whern
> creating CRUD operations. Allowing developers to create variations of
> endpoints with function overloading instead of using if-statements
> within the request object to check to see if parameters are there or
> not.
> 
> I believe OSGi annotations are going to support JAX-RS annotations in
> the near future, thus I am wondering if that is something that Sling
> is looking to integrate into the server.

I found 

  https://osgi.org/specification/osgi.cmpn/7.0.0/service.jaxrs.html

so it seems this should already be possible. What I am not certain is 

1. how this will co-exist with the SlingMainServlet in terms of URL
mapping
2. how this can be intergrated in terms of access control, resource
resolution, etc

I would suggest that you give this a try, this could be an interesting
direction if we can make this fit in with the whole Sling paradigm.

Thanks,

Robert

Reply via email to