Procedure for Importing and Testing APIs in MuleSoft
Prerequisites:
Before you begin, ensure the following components are installed and running on your Windows system:
- Download java11 from oracle and add the path to environment variable
- Download apache-maven-3.9.11-bin.zip and also ass pathto environment variable : https://maven.apache.org/download.cgi
- Install mule-enterprise-standalone-4.10.0 from https://www.mulesoft.com/lp/dl/mule-esb-enterprise
- Download GitHub
- Download Winget and then make sure it is run from command prompt
- Download vs code
- Download anypoint code builder package in vs code.
Import the Api:
- Open MuleSoft website, login as anypoint platform, click on API then Design center
- Click on create then choose import from file, choose the -raml file then click import
- Wait until it completes then click publish, then click publish to exchange.
- Open vs code, then click on file choose open folder then choose the zipped file
- Wait until it completes creating the flows.
- Last click run then run without debugging
Testing:
AISP Flow
GET- http://localhost:8082/accessToken - access tokenPOST- http://localhost:8083/consent - create consentPOST- http://localhost:8084/userAuth - userAuthGET- http://localhost:8085/authreq {query_params: client_id, scope, otp, consent_id, state, redirect_uri, response_type}POST- http://localhost:8086/tokenExch - token exchangePOST- http://localhost:8087/AuthConsent - authorize consentPOST- http://localhost:8088/balance - balance InquiryPUT- http://localhost:8089/update - update consentDELETE- http://localhost:8090/delete - delete consent
PISP Flow
GET- http://localhost:8099/access - access token {query_params: grant_type}POST- http://localhost:8098/create - create consentPOST- http://localhost:8097/userAuth - userAuthGET- http://localhost:8096/AuthorizeReq - {query_params: client_id, scope, otp, consent_id, state, redirect_uri, response_type}POST- http://localhost:8094/token - token exchangePOST- http://localhost:8095/AuthConsent - authorize consentPOST- http://localhost:8092/payment - payment initiatePOST- http://localhost:8091/fund - fund confirmationPUT- http://localhost:8088/update - update consentDELETE- http://localhost:8087/delete - delete consent
Download Open Banking - Mulesoft Starter Kit