Hi,
I am presently trying to facilitate two parts of our software platform
to work well together. One of these is a REST based interface for data
management to provision customers / users etc. which has been developed
using Restlet and Hibernate (and has been developed as OSGi bundles).
And the other is our portal which is being developed using sling to
provide the pages that make up the portal as well as serving up the
javascript administration interface (using ExtJS).
Through the admin interface a logged in user can manage data through
ajax rest based calls. In order for these calls to work the rest admin
api needs to be served up within the same uri space as the rest of the
portal / admin interface.
I have had a look into the ResourceProvider interface and how this
works, and other than getting quite confused along the way my
understanding is that this is only for accessing data from other sources
(not supporting POST/PUT/DELETE?). I may be wrong here, not sure.
So really my question is what would be a good way of having the two uri
spaces visible as one?
I was thinking that it may be that I should just mount the Restlet
servlet on certain root uri's, which will override sling... but then
this data would not be accessible through sling at all. This may be a
good short term solution (and one that it would be good to be able to
know how to do?).
Preferably I would like all of the data to be visible directly within sling.
Thanks in advance.
Bryce