Solved
Forum Discussion
dhiraj_gophane
11 years agoLeader
Hi,
May be you can try following snippet.
<#assign searchQuery = http.request.parameters.name.get( "q", "") />
function callEndpoint(searchQuery){
$.ajax({
type: "GET",
async: false,
url: "<endpoint url goes here>?QueryParameter=" + searchQuery ,
success: function(data) {
assignResponse(data);
}
});
}
You need to accept the QueryParameter in endpoint and do the rest api call to fetch results.
and generate a response which you can process in custom component as "data".