This document guides you with the assumption that you have set up WSO2 Open Banking Key Manager, and WSO2 Open Banking API Manager in separate servers.
...
Tip
title
Before you begin
Create a user with Internal/creator and Internal/publisher roles using https://<OBKM_HOSTNAME>:9446/carbon. To create users and roles, see configuring users and roles, which elaborates the steps to create the user as the API publisher.
In the WSO2 Open Banking Berlin v1.1, it is mandatory to configure APIs for:
Accounts API v1.1
Payments API v1.1
Given below is the general procedure to configure and publish an API.
Tip
Create a user in order to configure API. For more information on creating a user, refer Configuring users and roles.
If one version of the API is already deployed, you may create a new version of it instead of deploying a new API. For more information, see create a new version for an existing API.
...
Multiexcerpt include
MultiExcerptName
ConfiguringAPIs
PageWithExcerpt
Try Local Setup
Configuring the velocity_template.xml file
velocity_template file checks the deployed specification. The velocity_template.xml file in the <WSO2_OBAM_HOME>/repository/resources/api_templates/velocity_template.xml file, is by default configured to support berlinspecification with the following handler.
...
the velocity_template.xml file
velocity_template file checks the deployed specification. The velocity_template.xml file in the <WSO2_OBAM_HOME>/repository/resources/api_templates/velocity_template.xml file, is by default configured to support berlinspecification with the following handler.
You need to get the latest product updates to validate the incoming request to APIs, in the current version of WSO2 Open Banking. This feature is available as a product update from June 25, 2019 (06-25-2019)onwards. Follow the instructions given below to apply changes.
Tip
title
Before you update as follows;
Make sure you have added required changes to the API-Manager management console as mentioned here.
WSO2 Open Banking allows users to validate incoming requests to APIs against any customizations done to a swagger file. Update the RequestSchemaValidationHandler in the velocity_template.xml file as follows:
Sequence files for Accounts and Payments must be updated separately in the <WSO2_OBAM_HOME>/repository/resources/finance/apis /berlin-group.org/<Name of the API>. Update the value of the <OBKM_HOSTNAME> with the hostname of the WSO2 Open Banking Key Manager server.
By default, WSO2 Open Banking API Manager includes a mock bank backend, which is configured by default in the In sequences. Ideally, the two occurrences of https://<OBAM_HOSTNAME>:9443/open-banking/services/accounts/accountservice should be replaced by the core banking system's API endpoints corresponding to the production, and sandbox environments respectively. For more information, see Integrating Core Banking System for Berlin.
...
language
xml
title
AccountsAPI
...
Configuring sequence files
Sequence files for Accounts and Payments must be updated separately in the <WSO2_OBAM_HOME>/repository/resources/finance/apis /berlin-group.org/<Name of the API>. Update the value of the <OBKM_HOSTNAME> with the hostname of the WSO2 Open Banking Key Manager server.
By default, WSO2 Open Banking API Manager includes a mock bank backend, which is configured by default in the In sequences. Ideally, the two occurrences of https://<OBAM_HOSTNAME>:9443/open-banking/services/accounts/accountservice should be replaced by the core banking system's API endpoints corresponding to the production, and sandbox environments respectively. For more information, see Integrating Core Banking System for Berlin.
In the API Publisher (https://<OBAM_HOSTNAME>:9443/publisher), click the API thumbnail to view the API overview. Image Removed
Click CREATE NEW VERSION.
Tip
Versioning allows several APIs to share the same scope.
Define the new version and click Done.
Note
The API version will be used in the velocity-template.xml file to configure the corresponding URLs, therefore it is advised to define the version as v1.0, v2.0, v3.0 or v3.1
Image Removed
Click on the newly created API and click EDIT API.
Under API DEFINITION, click Import.
Select the swagger definition of the new API version from the <WSO2_OBAM
In the WSO2 Open Banking Berlin v1.1, it is mandatory to configure APIs for:
Accounts API v1.1
Payments API v1.1
Given below is the general procedure to configure and publish an API.
Tip
Create a user in order to configure API. For more information on creating a user, referConfiguring users and roles.
If one version of the API is already deployed, you may create a new version of it instead of deploying a new API. For more information, see create a new version for an existing API.
Anchor
WumUpdateForRequestValidationBG
WumUpdateForRequestValidationBG
Multiexcerpt
MultiExcerptName
ConfiguringAPIs
Sign in to the API Publisher (https:// localhost:9443/publisher) with the a user whose roles include Internal/publisher. Follow the steps given below:
Click ADD NEW API > I have an existing API.
Select the Swagger definition from <WSO2_OB_APIM_HOME>/repository/resources/finance/apis and configure the properties according to the open-banking specification. Find more information from the table given .
Click Start Creating.
Click Next: Implement to navigate to the next level.
Expand Managed API, and use the table to select the relevant Endpoint Type from the drop-down list.
Check Select a message mediation policy to be executed in the message flow under Message Mediation Policies.
Click Upload In Flow and select the corresponding In sequence file from the <WSO2_OB_APIM_HOME>/repository/resources/finance/apis/berlin-group.org/ directory.
Click Next: Manage to navigate to the next level.
Expand Throttling Settings. Under Subscription Tiers, check the option as Unlimited : Allows unlimited requests unless you want to limit the requests.
Expand API Properties and add the following values as Additional properties:
Property Name
ob-spec
Property Value
berlin
Click the + button to save the above values.
Click Save & Publish.
Summarized information for configuring APIs
Specification
API
Implement tab
Manage tab
Endpoint type
Endpoint
Enable Message mediation
In flow
API property name
API property value
Berlin specification
AccountInfo API v1.1.0
Dynamic
N/A
Mark as checked
Select the respective In Sequence in the <WSO2_OB_APIM_HOME> /repository/resources/finance/apis
directory. Image Removed
Click Import, and then click Next: Implement > to navigate to the next page.
Expand Managed API, and click Upload In Flow.
Select the In sequence of the corresponding API version, and click Upload. Image Removed
Click Next: Manage > to navigate to the next page.
Expand API Properties and ensure the ob-spec property is set to reflect the correct specification.