Expand my Community achievements bar.

SOLVED

QueryBuilder restful API vs Java API

Avatar

Level 3

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)

1 Accepted Solution

Avatar

Correct answer by
Level 10

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 

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

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 

Avatar

Level 10

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!