I am querying an API via App Connect for some stock news and the symbol is apart of the URL, and not a traditional query parameter (e.g: ?symbol=aapl). I want the symbol to be based off of an input field so I can filter a Data View later on. Is this possible with App Connect API Source or do I have to do this using the Server Connect Add API Action?
The highlighted portion of the URL needs to be dynamic based on the input field. Does anyone have an idea on how this might be accomplished? If it isn’t possible via App Connect, some tips on doing it with Server Connect would also be great!
@George thank you, sir! You guys have done a wonderful job on Wappler and I am trying to get a handle on it as quickly as possible. I'm having a lot of fun and finding it to be powerful and intuitive. I hope to be able to contribute support to the community in the future to help new users get comfortable, just as you all are doing for me.
Edit: Maybe I should re-iterate that I am using the App Connect API Data Source for this and not the Server Connect API Action. At this point I am wondering if the advice being given to me is to be applied to the Server Connect side rather the App Connect.
ah seems the url is a static value - so you have to enter just the static url there.
You can use dynamic urls - by binding the url as dynamic attribute.
I see we have missed that from the list of dynamic attributes, so I will add it in todays update.
for now just prefix the url= attribute in your code with dmx-bind:url=
then you can use expressions as values, like:
To get the schema, you provide a static url, and data samples for any query parameters you might need inside the Define Schema panel. You can also provide a sample response if your api vendor makes that available.