Are we misusing Sling?
Hi,
As part of a CQ5 project of ours, we have implemented a custom administration dashboard using AngularJS. This app, along the rest of our project, is deployed to a CQ5 instance as an OSGi bundle.
In our app, we have implemented a few servlets to let the admin interface communicate with the backend. All data communication is through JSON.
It seems to me we are misusing Sling here, because:
- We are not using any of the functionality provided by Sling (renditions, selectors, etc.)
- Sling servlets are not appropriate as a RESTful backend for CRUD actions. For example, if we map a servlet to the /bin/.../Themes path, it is not possible to map GET /bin/.../Themes/1/edit to the same servlet out of the box if we have to. Similarly Sling servlets are not flexible enough if we want to implement custom actions (e.g. POST /bin/.../Themes/1/deactivate)
Am I correct? Doesn't it make sense to avoid using Sling for this part of the project?
Thanks.