AWS API Gateway is a new data adapter of Kony Fabric integration services. With Kony Fabric AWS API Gateway integration service, you can connect to the services configured and deployed under API Gateway Service in Amazon Web Services.
Kony Fabric AWS API Gateway supports the following integration types of Amazon API Gateway:
Note: Kony Fabric supports AWS API Gateway services, which returns JSON response.
To configure AWS API Gateway service in the Integration Service Definition tab, follow these steps:
Field | Description |
---|---|
Regions | Select your region that you have configured AWS API Gateway for your AWS account. |
AWS URL | It displays the AWS API gateway URL for the selected region. You cannot modify this field. |
Access Key ID | Enter the access key ID that you received from your AWS account. |
Secret Access ID | Enter the secret access key ID that you received from your AWS account. |
Test Connection |
Click Test Connection to test you AWS connection details. The system displays |
Field | Description |
---|---|
Custom Code |
Custom Code enables you to specify dependent JAR. Important: Make sure that you upload a custom JAR file that is built on the same JDK version used for installing Kony Fabric Integration. |
Throttling |
API throttling enables you to limit the number of request calls within a minute. If an API exceeds the throttling limit, it will not return the service response.
Note: In case of On-premises, the number of nodes in a clustered environment is set by configuring the |
Note: All options in the Advanced section are optional.
In the Description field, provide a suitable description for the service.
To enable the proxy, select the Use proxy from settings check box. By default, the check box is cleared.
The Use proxy from settings check box dims when no proxy is configured under the Settings > Proxy.
Click Save to save your service definition.
The Operations List tab appears only after the service definition is saved.
Note: Click Operations List tab > Configure Operation. The Configured Operations list appears.
To create an operation, follow these steps:
Note: To use an existing integration service, refer to How to Use an Existing Integration Service.
To create an operation, provide the following details:
Field | Description |
---|---|
API | From the drop down list, select an API that is deployed at Amazon Services. |
Resource | Select the required resource from the drop down list. |
Stages | Select the required stage from the drop down list. |
Methods | Select the required method from the drop down list. |
Add Operation | Click Add Operation to add the created operation in the Configured Operations Section. Operation names are auto-generated in the format. The default name format of a AWS API operation is <method_name><api_name><resource_name> . You can change the operation name if required. |
Once you create operations for an AWS API Gateway service, you can configure operations as follows:
Field | Description |
---|---|
Name | It is prepopulated with the operation name. You can change the name if required. |
Operation Security Level |
It specifies how a client must authenticate to invoke this operation. Select one of the following security operations in the Operation Security Level field.
|
Field | Description |
---|---|
Custom Code Invocation - Preprocessor and Postprocessor (for Java and JavaScript) | You can add pre and post processing logic to services to modify the request inputs. When you test, the services details of various stages in the service execution are presented to you for better debugging. All options in the Advanced section are optional. For more details, refer to Preprocessor and Postprocessor. |
Properties |
Additional configuration properties (timeout, cachable, unescape embedded xml in response, response encoding, number of connection retries allows you to configure service call time out cache response |
Front End API | It allows you map your endpoint/back-end URL of an operation to a front-end URL. |
Server Events | Using Server Events you can configure this service to trigger or process server side events. For detailed information, refer Server Events. |
Note: All options in the Advanced section are optional.
Integration services accept only form-url-encoded
inputs for all input parameters provided in service input parameters (request input).
You can perform the following actions in Request Input tab:
Field | Description |
---|---|
Name | It Contains a Unique Identifier. Change the name if required. |
Test Value | Enter a value. A test value is used for testing the service. |
Default Value | Enter the value, if required. The default value will be used if the test value is empty. |
Scope |
Select Request or Session. It is set to Request by default.
|
Datatype |
Select one of the following data types.
|
Encode |
Select the check box to enable encoding of an input parameter. For example, the name New York Times would be encoded as New%20York%20Times when the encoding is set to True. The encoding must also adhere to the HTML URL encoding standards. |
Important: If AWS APIs with API Key Required is set to "true", the api key needs to be sent as request header as x-api-key.
Field | Description |
---|---|
Name | Provide custom HTTP headers required by the external source. |
Scope |
Select one of the following options. It is set to Request by default.
Note: You cannot edit the default value for the expression. |
Test Value | Enter a value. A test value is used for testing the service. |
Default Value | Enter the value, if required. The default value will be used if the test value is empty. |
Description |
Provide a suitable description of the service. |
To validate the operation details, click Save and Test. For more details, refer to Test a Service Operation.
The Name field in the Response Output tab is prepopulated with properties of the output API.
Enter the values for required fields such as name, scope, data type, collection ID, record ID, format and format value.
Note: If you define parameters inside a record as a session, the session scope will not get reflected for the parameters.
Note: You can view the service in the Data Panel feature of Kony Visualizer. By using the Data Panel, you can link back-end data services to your application UI elements seamlessly with low-code to no code. For more information on Data Panel, click here.
Copyright © 2020 Kony, Inc. All rights reserved. |