Moe
Posts: 0
Joined: Thu Jul 10, 2014 9:24 pm

API Request Parameter to update based on input

While using an API is there a way to replace just one part of the Request Parameter with the input from a search bar? I have a page which lists all of my customers, on the top I added a search bar, in order to search the API i need to filter it. Here is the URL Parameter:
Parameter is called: "filters" and the value
[{"field":"keyword_search","operator":"is","value":"Need_to_Replace_Just_This"}] my goal is that when someone searches for a name, the part where it says "Need to Replace Just This" should be replaced with the search results... I hope this is clear, if not I'll try and clarify further.
Thanks in advance

Moe
Posts: 0
Joined: Thu Jul 10, 2014 9:24 pm

API Request Parameter to update based on input

Thanks Evgene, I'm trying to look through it just can't figure out how to replace just one part with what was typed in the search box.

I simply want to that if the user searches for "Michael" it will change this from:
[{"field":"keyword_search","operator":"is","value":""}] to:
[{"field":"keyword_search","operator":"is","value":"Michael"}]

Can you guide me on how to do this? the links you sent shows how to add several fields, not adding one field into a specific place in a predefined string.

Thanks again

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

API Request Parameter to update based on input

Hi Moe,

Do you use internal Appery.io REST API?

Please show us your service settings, request and response tabs screen shots.

Regards.

Return to “Issues”