Deploy Open Banking APIs
This page explains how to deploy an Open Banking API.
Before publishing the APIs, need to create the consumer role in WSO2 API Manager.
Create Consumer Role APIM Console¶
-
Goto APIM Carbon Console:
https://<APIM_HOSTNAME>:9443/carbon
-
Log into APIM Carbon Console using APIM admin username and password.
-
Click on Main Tab → Users and Roles → Add
-
Click on Add New Role.
-
Enter role Details:
Domain | Role Name |
---|---|
INTERNAL | consumer |
- Click on Finish.
Publish Accounts API¶
-
Sign in to the API Publisher Portal at
https://<APIM_HOSTNAME>:9443/publisher
. -
In the homepage, go to REST API and select Import Open API.
-
Select OpenAPI File/Archive.
-
Click Browse File to Upload and select account-info-swagger.yaml.
-
Click Next.
-
Set the Context value as follows:
/open-banking/{version}/aisp
-
Leave the Endpoint field empty as it is, Select the Gateway Type and click Create.
-
Select Subscriptions from the left menu pane and uncheck all subscription plans.
-
Click Save.
-
Go to Runtime using the left menu pane.
-
Toggle the Schema Validation button to enable Schema Validation for all APIs except for the Dynamic Client Registration API.
-
Add JWT claim based access validation.
Use aut as the Access verification claim name and value from below.
Token Type Claim Value Client Credentials Grant APPLICATION Authorization Code Grant APPLICATION_USER -
Go to Endpoints using the left menu pane.
-
Select the endpoint types;
Dynamic Endpoints
and click Save.
-
Create and engage the required Inbuilt Gateway Enforcements
- Refer the Introduction to Policies for more details on Policies.
- Refer the Create Policies for create new Policies.
- Refer the Engage Policies to learn how to engage policies to an API.
-
Select the API Gateway type, in this scenario, it is Default.
-
Click Deploy.
-
Go to Overview using the left menu pane.
-
click Publish.
Once you deploy the APIs an API resource will be created along with the role mentioned in the swagger on the Identity Server side.
Top