Configuring an ION API data service
Whether creating a data service in a project or in the App Builder Repository, you can use an ION API as the source. This sub-procedure describes how to configure that data service.
To configure a data service using an ION API as the source, use this sub-procedure:
- In the Create Data Service - Find API dialog box, use the Suite drop-down menu to select the Infor product suite that contains the API you want.
- Optionally, to filter your search for the desired API, specify a search term in the Search field, and then click Search.
- Optionally, to filter the results according to specific operations, select the operations to search for, using the list of If you leave this field blank, App Builder searches for all available APIs in the suite (or all suites, if no suite has been specified). Filters.
-
From the list of results, select the API you want.
Note: If you are using the Infor Mongoose REST API set, you must select only APIs that use JSON.
To view the details for a particular API, what properties it contains, and so on, click Details for that API. This launches the Operation details dialog box, which displays detailed information about the API.
-
Once you locate and select the API you want, click Next.
App Builder opens the Create Data Service dialog box to the Input Parameters page. This page displays information about any input parameters required by or accepted by the API. You can also use this page to modify input parameters for the API.
- View JSON
- Http Method
- From the drop-down list, select the type of HTTP action to take with the API request.
- API Relative URL
- This field displays the URL for the API, relative to
- Request Header
- This field displays the request header information for the API request.
- Input Parameters
- This section displays options to set input parameters for the API request. You can add or remove parameters, set parameters as requred, define the parameter types, and optionally provide aliases for the parameters.
-
Optionally, verify that the data service is performing as desired:
- Click Test Data Service.
- In the Test Data Service dialog box, manually input values for any required input parameters.
- Optionally, manually input values for any optional input parameters you want to test.
- Scroll to the bottom of the dialog box and click Run Data Service.
- Verify that the data service response is as expected by examining the contents of the Response Body field.
- Assuming the data service responds as expected, optionally click
Copy to clipboard.
This copies the entire contents of the Response Body field to the system clipboard. You will need this data to test the output parameters.
- Click Close.
-
When you are finished with the Input
Parameters page, click Next.
App Builder opens the Output Parameters page. Use this page to specify this information:
- Output Type
- Select the response output type.
- JSON requires the
response data to be in JSON format.
In the next step, you can use the data copied in the previous step to provide this.
- File requires the data to be imported from a file, as specified in the Response alias field.
- JSON requires the
response data to be in JSON format.
- Root Element
- Object Id
- Output Parameters
- Use this section to generate and test output parameters for the selected API.
- GENERATE PARAMETERS
-
Optionally, test the data service to verify that it
accomplishes whatever it is supposed to. To do this, click Test Data Service, provide
whatever input parameters are needed, scroll to the bottom, and click Run Data Service.
The results of the test display in the Response Body section of the Test Data Service dialog box. If the expected data is returned, then the test was successful.
- Click Next.
- On the Name & Description page of Create Data Service, provide a Name and optional Description for the data service.
- Click Next.
-
On the Summary page of the wizard, verify that all your specifications
are correct. When you are satisfied that they are, click Finish.
App Builder adds the data service to the list of available data services.
- Click Close.