How to Save or Use a Version of a Service
You can save an integration service to a new version. Saving a new version of an integration service unlinks the current version of the service from the Quantum Fabric application, and links the new version. A Quantum Fabric app can be associated with only one version of an integration service.
NOTE: For more details on API Versioning Use Cases, refer to Quantum Fabric API Versioning
To create a new version of an Integration service, follow these steps:
- On the Integration tab, click the name of a service in the list of existing services. You can also select Edit from the Operations menu for a service.
The Service Definition tab appears.
- Click the Version menu.
- Select Save as new version.
The Save as dialog appears.
- Type the version number of the new version of the service.
You can use major.minor numbering for versions. Quantum Fabric supports major versions from 1 through 999, and minor versions from 0 through 99. Quantum Fabric supports version numbers from 1.0 to 999.99. Note that the dot '.' is a separator for version numbers and does not function as a decimal.
- Add a description of the new version.
- Click OK.
Quantum Fabric links the new version of the service to the Quantum Fabric app, and unlinks the previous version.
To use a different version of an integration service, follow these steps:
- On the Integration tab, click the name of a service in the list of existing services. You can also select Edit from the Operations menu for a service.
The Service Definition tab appears.
- Click the Version menu.
-
Select a version of the service.
-
The Alert dialog appears. The Alert warns you that you are unlinking the current associated version of the service from the application.
-
Click OK.
Quantum Fabric links the version that you selected to the Quantum Fabric application.
How to Use an Existing Integration Service
Quantum Fabric allows you to use an existing integration service. You can add or clone more than one service at a time from existing services.
To use an existing integration service, follow these steps:
- Go to the Integration tab. The page lists the existing services (if any).
- In the Integration, click USE EXISTING from the tree in the left-pane or right pane.
The Existing services dialog appears with a list of existing services.
- To use a different version of an integration service, click the Version menu of the required service and select a version of the service.
- Select the check box for the desired services. If you want add or clone more than one service, select the required check boxes from the existing services.
- Click CLONE or ADD button.
- Click ADD to reuse (link) an existing service. If any changes made to this service, the changes will affect in all the apps using this service.
NOTE: If a service is a part of a published app, you can rename that service only after the app is unpublished.
- Click CLONE to duplicate an existing service. If any changes made to this service will have no impact on the original service.
- Click ADD to reuse (link) an existing service. If any changes made to this service, the changes will affect in all the apps using this service.
- After a service is added or cloned successfully, click CLOSE to close the process dialog.
How to Clone, Unlink, or Delete Multiple Existing Integration Services
Quantum Fabric allows you to clone, unlink, or delete one or more existing integration services from the Integration list page. You can add or clone one or more services at a time from existing services.
To clone, unlink, or delete multiple existing integration services, follow these steps:
- Go to the Integration tab. The page lists the existing services (if any).
By default, the check box is cleared for each service in the services list page.
- Select one or more the check boxes for services. The quick access bar for the selected services appears with actions such as Clear All, Clone, Unlink, Delete.
- Clear All: Allows you to clear the one or more check boxes for the services.
- Clone: Allows you to duplicate an existing service. Changes made to a cloned service will not impact the original service.
- Unlink: Allows you remove the service from the Integration tab of an app. When a service is unlinked, it is disassociated from a particular app.
NOTE: If you want to use an unlinked service, select the service from the Use Existing Integration Service dialog.
- Delete: Allows you to delete a service.
NOTE: If a service is a part of a published app, you can delete that service only after you unlink the service from all the published app.
- Click the desired (Clone, Unlink, Delete) button.
Context Based Options
To perform various actions on an existing service, click the contextual menu of the required service.
The contextual menu contains the following options:
- Edit: Allows you to edit a service. After you edit a service, you have to republish all the apps that are using the service to apply the changes.
NOTE: To know more about publishing an app, refer to Publish an app.
NOTE: If a service is part of a published app, you can rename that service only after the app is unpublished.
- Clone: Allows you to duplicate an existing service. Changes made to a cloned service will not impact the original service.
- Sample Code: A dynamic code is generated based on the configuration of a service. You can use this code in your SDK.
- Unlink: Allows you remove the service from the Integration tab of an app. When a service is unlinked, it is disassociated from a particular app.
NOTE: If you want to use an unlinked service, select the service from the Use Existing Integration Service dialog.
- Delete: Allows you to delete a service.
NOTE: If a service is a part of a published app, you can delete that service only after you unlink the service from all the published app.
-
Audit Logs helps you to capture all the user activities performed in a service. Object Name, Object Type and Modified On fields are prepopulated with the Service Name, Services, and Last 7 Days respectively.
For more information on Audit Logs, refer to Audit Logs documentation.
-
Console Access Control: Controls the access to the applications and services of apps.
- Export as XML: Exports an existing version of a service to an XML file.
- Export: Allows you to export the integration service into your local system. The exported file is an .xml file.
Test the Login for an OAuth 2.0 Identity Service
When you are defining an operation for an integration service, you can request that Quantum Fabric fetch the response to the operation. If the integration service uses an OAuth 2.0 identity service for authorization, you must log in to the identity service before Quantum Fabric can fetch the response from the back end.
When you first request that Quantum Fabric fetch the response, the service does not yet have the required token. You can then authorize Quantum Fabric to generate the token. Quantum Fabric then pops up the sign in for the OAuth 2.0 identity provider. After you successfully sign in to the identity service, Quantum Fabric sends the request with the identity to the OAuth 2.0 back end. Quantum Fabric gets the token and stores it in a cookie for Quantum Fabric on the browser. Quantum Fabric sends the token to the back end, and because the back end has the valid OAuth 2.0 token, the back end sends its response. The back end populates the identity backend response, the backend response, and the output result.
For the lifetime of the session, you can test an operation and you are not required to sign in again. In the identity backend response, you can view the token and clear the token if you want to test the login again.
To test the log in for an identity service, do the following:
- Click Fetch Response.
- Click Authorize.
- Enter your credentials and click Sign In.
- To clear the cached token, in the Identity Backend Response tab, click Clear Token.
The Identity Backend Response tab appears. Quantum Fabric identifies that the integration service is linked to an OAuth identity service. A message informs you that the service needs a backend token. If the message does not appear, the integration service has the backend token.
The sign in screen for the identity service appears.
The backend response is populated in the response pane.
In the Identity Backend Response tab, you can click Copy to copy the results of the response to the clipboard. Click Expand to open the Identity Backend Response in its own window.
IMPORTANT: If a custom integration service (for example, MongoDB or RAML) is linked to an OAuth2 identity service, while testing an operation of the integration service from Quantum Fabric Console, you must pass the x-kony-oauth2-access-token
as header and access_token
as header value.
Also, If a custom integration service (for example, MongoDB or RAML) is linked to an OAuth2 identity service, while testing an operation of the integration service from Admin Console, you must pass the x-kony-oauth2-access-token
as header and access_token
as header value.
For example: