Connect Your SAP Build Application to a Public API
Beginner
10 min.
Connect your application to a public API and then test that it's pulling the right information.
You will learn
- How to add and configure data resources in your SAP Build application
- How to call a public API by scanning a barcode
In the previous tutorial, you configured your application to open a device camera once the scan button had been tapped. This currently reads the barcode and returns only the barcode number, which on it’s own is just a reference with no further information.
To improve this, you need to configure a data source connected to that information. In this example, we’ll use the Open Food Facts public API. Here the application will make an HTTPS request to their URL, returning the information provided there.