Solved
Forum Discussion
NicoB
11 years agoLithium Alumni (Retired)
It might not be the cause but I noticed that while in the endpoint you're looking for a "query" parameter:
<#assign search_query = http.request.parameters.name.get("query", "")>
in your JavaScript code it seems like you're passing a parameter with name "search_query":
$.get( "${kb_endpoint_url}", { search_query : queryValue } )/
Gursimrat
11 years agoLeader
This was not the case @NicoB, I have already tried these out. I only have a requirement where I can pass the value from my custom component text box to this endpoint and get the results back, any other ways?
- dhiraj_gophane11 years agoLeaderIn reference to my last Comment,
You can accept the parameter in endpoint as,
<#assign search_query = http.request.parameters.name.get("QueryParameter","") />