Hi,
I have just had a first look at the new APIs and have a question about filtering of the returned results. I will try and use a very simple example.
Using this API: https://restcountries.com/#rest-countries we can pull through all sorts of information about a country, let’s say the country’s official name, currency and flag. The API is very simple to set up in Cornerstone. The Endpoint would be https://restcountries.com/v3.1/
and the path: all
. This brings through all countries from the API.
However, is it possible to enable this data to be filtered by the website’s visitor? For example, could there be an input (search) field where the visitor could enter a part of the country’s name (e.g. America
) and this term would be passed to the API - presumably using some type of dynamic content via the API’s path field - with the data being returned showing countries with America
in their name?
This may be beyond what the new API features can do at the moment, but I was interested to see if API calls can be used in this way.
Thanks,
Christopher