Skip to Content
2
May 25, 2022 at 08:18 PM

Appgyver: how to pass url filter parameters in REST API

1416 Views

Hello all! I am woking in my Appgyver app for No-code challenge and I want to pass dynamic query parameters in an API. Here is an explanation:

I would like to use an REST API to search for an scanned barcode. The barcode scan works fine and the scanned results is displayed in a list bound to a data variable based on a 'on-device storage' data type (IMAGE 1).

Now I want to use barcodelookup API to read data from this barcode, as explained here

https://www.barcodelookup.com/api-documentation#endpoints

the API connection works fine in Appgyver data integration and I can set the schema (IMAGE 2)

But now I want to call the API and pass the barcode value I have read. But I can´t find how to pass parameters in logic tab. The Get Record logic does not have parameters (IMAGE 3)

And in data configurator, I can´t set a query parameter to a dynamic app variable (IMAGE4)

The question is, how can I pass dynamic query parameters to an api url? Here we have multiple query parameters
https://www.barcodelookup.com/api-documentation#endpoints

IMAGE 1

image.png

IMAGE 2

image.png

IMAGE 3

image.png

IMAGE 4

image.png

Attachments

image.png (304.9 kB)
image.png (54.5 kB)
image.png (60.0 kB)
image.png (56.4 kB)