Page 2 of 2

Search not working with request parameters...

Posted: Fri Sep 20, 2013 12:51 pm
by Krs Joseph

I set a local storage variable that should be the term to search for Image


Search not working with request parameters...

Posted: Fri Sep 20, 2013 12:52 pm
by Krs Joseph

and finally the response from the search Image


Search not working with request parameters...

Posted: Fri Sep 20, 2013 1:21 pm
by Kateryna Grynko

Hi,

You can generate response parameters automatically.
To do this open REST Service settings, Test tab, click "Test" and then "Automatically Create Service Response".


Search not working with request parameters...

Posted: Fri Sep 20, 2013 3:23 pm
by Krs Joseph

Hi I did that already, what do I have to do to get the search term submitted from the bar to be the term for the response


Search not working with request parameters...

Posted: Fri Sep 20, 2013 6:42 pm
by Maryna Brodina

Hello! Sorry, but could you describe what do you want to achieve in more details?


Search not working with request parameters...

Posted: Mon Sep 23, 2013 12:27 pm
by Krs Joseph

I want a user to be able to search for whatever the term may be on this url http://oitapiv3.azurewebsites.net/api... with the term being entered into the search bar and then it goes to a page with the search results...


Search not working with request parameters...

Posted: Mon Sep 23, 2013 1:11 pm
by Maryna Brodina

Hello!
1) Add Input fiels to enter term for search;
2) On any event, for example Click on button add two events - set local storage variable from component with term you enter and navigating to search results page (don't change events order).
3) On page search results add needed service, in request mapping map parameter term from localStorage variable.
4) On search results page show event call the service.