QueryBuilder restful API vs Java API | Community
Skip to main content
Level 3
October 16, 2015
Solved

QueryBuilder restful API vs Java API

  • October 16, 2015
  • 2 replies
  • 828 views

Hi 

It seems that the REST API provides a high number of features through HTTP. I'm interested to know of some scenarios where we will rather use the QueryBuilder Java API over the OOB Rest API (querybuilder.json)

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

QUeryBuilder is a better solution to use if you want to build logic in a custom OSGi service - which is implemented as Java. When you say Restful OOTB - I assume you are talking about the default SlingPostServlet.

If you want to learn about how to use QueryBuilder API within an OSGI - see:

https://helpx.adobe.com/experience-manager/using/using-query-builder-api1.html 

2 replies

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

QUeryBuilder is a better solution to use if you want to build logic in a custom OSGi service - which is implemented as Java. When you say Restful OOTB - I assume you are talking about the default SlingPostServlet.

If you want to learn about how to use QueryBuilder API within an OSGI - see:

https://helpx.adobe.com/experience-manager/using/using-query-builder-api1.html 

WhoaShekhar
Level 10
October 16, 2015

Hi there,

Thanks for reaching out to Adobe Community.

Please go through the below link and see if it helps:

https://docs.adobe.com/docs/en/aem/6-0/develop/search/querybuilder-api.html

Thanks!