Forum Discussion

Gursimrat's avatar
Gursimrat
Leader
11 years ago

Passing parameter from custom component to an endpoint

I am calling an endpoint from a custom component where my requirement is as below:   From a text box, when a user types a query (a string), it will need to be passed in a REST call which will fetch...
  • dhiraj_gophane's avatar
    dhiraj_gophane
    11 years ago
    In reference to my last Comment,
    You can accept the parameter in endpoint as,

    <#assign search_query = http.request.parameters.name.get("QueryParameter","") />