I have a page, where i get data from an external API service.
I can all all data by using “url/data/all”
Byt for most cases, it would be better, if the user, can click a link, and select a country.
The api support this by using “url/data/country”
Is there a clever way, i can modify the url, based on a link, or some other way (in case this is not the correct way of doing this).
The only way i see it right now, is to create a page, for every country i have, and that is a hassle to maintain.
With Hugo -as far as I know- there is no way to populate lists from remote APIs on demand.
Perhaps you could render these lists with JavaScript on the frontend, but I am not aware of a library that you could use, because I never had a need to use it.