Create an app using REST APIs

By integrating external REST APIs into your Jigx solutions, you can significantly enrich your apps with a wide range of data and functionality from various external sources, enhancing the overall user experience.

REST concepts

  • How to define the GET, PUT, PUSH, and DELETE REST operations in Jigx functions.

  • How to define the REST parameters, headers, continuation, and body in the functions.

  • How to configure input and output transforms in functions.

  • How Jigx automatically syncs the IDs for new customers created in REST API to theJigx local data provider. (tempId to Id - useful when the app is offline).

  • How to convert images into a format that is acceptable for REST and for Jigx.

  • How to get the image metadata using output transform.

  • How to reference the data in jigs (screens) and call the functions in actions.

What is created

In this section, a REST API is used to create a customer Jigx app that allows you to:

Functions & Jigs
Functionality description

View a list of customers by status.

Delete customers by swiping left.

Capture new customers in a form.

Update customer details by swiping left on the list and selecting view, which populates a form with the customer's details with an update button.

Return a list of customers in batches (continuation) and view customer details where addresses and phone are complex REST structures (jsonProperties).

View customer details, locations, and product images in a composite jig.

Upload product images for the customer.

High-level steps

The REST data provider is used in Jigx to integrate with REST. In this section, we follow these high-level steps:

  1. Identify the REST API to be used as your data source.

  2. Define a REST Service in a Jigx function in Jigx Builder.

  3. Configure REST Authentication (if required).

  4. Define data operations in the function, such as GET, POST, PUT, and DELETE. For each operation, create a new function to specify the endpoint, required headers, URL parameters, input and output transforms, continuation, and body content if applicable.

  5. Reference the Jigx functions in jigs.

  6. Publish your solution

  7. Test the Data Provider.

Last updated

Was this helpful?