List customers (GET)
Scenario

How does this work
REST API
REST
Detail
Function
provider: DATA_PROVIDER_REST
# Fetches data from the REST Service.
method: GET
# Use your REST service URL.
url: https://[your_rest_service]/api/customers
# Return data for rows with matching ids.
forRowsWithMatchingIds: true
# Direct the function call to use local execution between the device and
# the REST service.
useLocalCall: true
parameters:
accessToken:
location: header
required: true
type: string
# Use manage.jigx.com to define credentials for your solution.
value: service.oauth
# Define the customer fields that must be fetched from the REST Service.
outputTransform: |
$.customers.{
"id": custId,
"firstName": firstName,
"lastName": lastName,
"companyName": companyName,
"address": addresses[0].address,
"city": addresses[0].city,
"state": addresses[0].state,
"zip": addresses[0].zip,
"phone1": phones[0].mobile,
"phone2": phones[0].office,
"email": email,
"web": web,
"region": region,
"customerType": customerType,
"jobTitle": jobTitle,
"logo": logo
}
# Convert the images returned from the REST service to local-uri
# which the jig expects to be able to display the image.
conversions:
- property: logo
from: base64
to: local-uriAction (global)
Jig (screen)
Index
Last updated
Was this helpful?