Query API Return results in JSON | Adobe Higher Education
Skip to main content
March 21, 2022
Beantwortet

Query API Return results in JSON

  • March 21, 2022
  • 1 Antwort
  • 534 Ansichten

I can use the API to create a query, but can I also get the results from the query in the API?

Dieses Thema wurde für Antworten geschlossen.
Beste Antwort von DEBAL_DAS

you can write a servlet which can be exposed as an API.

In your servlet, you can get the same json object but return only ‘hits’ object as the response as suggested here 

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-get-readable-json-query-data-that-is-accessible-in-api/td-p/263482

 

 

 

 

1 Antwort

DEBAL_DAS
DEBAL_DASAntwort
New Member
March 21, 2022

you can write a servlet which can be exposed as an API.

In your servlet, you can get the same json object but return only ‘hits’ object as the response as suggested here 

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-get-readable-json-query-data-that-is-accessible-in-api/td-p/263482

 

 

 

 

Debal Das, Senior AEM Consultant