Procedure for Importing and Testing APIs in MuleSoft

Prerequisites:

Before you begin, ensure the following components are installed and running on your Windows system:

Import the Api:
  1. Open MuleSoft website, login as anypoint platform, click on API then Design center
  2. Click on create then choose import from file, choose the -raml file then click import
  3. Wait until it completes then click publish, then click publish to exchange.
  4. Open vs code, then click on file choose open folder then choose the zipped file
  5. Wait until it completes creating the flows.
  6. Last click run then run without debugging
Testing:

AISP Flow

  • GET - http://localhost:8082/accessToken - access token
  • POST - http://localhost:8083/consent - create consent
  • POST - http://localhost:8084/userAuth - userAuth
  • GET - http://localhost:8085/authreq {query_params: client_id, scope, otp, consent_id, state, redirect_uri, response_type}
  • POST - http://localhost:8086/tokenExch - token exchange
  • POST - http://localhost:8087/AuthConsent - authorize consent
  • POST - http://localhost:8088/balance - balance Inquiry
  • PUT - http://localhost:8089/update - update consent
  • DELETE - 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 consent
  • POST - http://localhost:8097/userAuth - userAuth
  • GET - http://localhost:8096/AuthorizeReq - {query_params: client_id, scope, otp, consent_id, state, redirect_uri, response_type}
  • POST - http://localhost:8094/token - token exchange
  • POST - http://localhost:8095/AuthConsent - authorize consent
  • POST - http://localhost:8092/payment - payment initiate
  • POST - http://localhost:8091/fund - fund confirmation
  • PUT - http://localhost:8088/update - update consent
  • DELETE - http://localhost:8087/delete - delete consent

Download Open Banking - Mulesoft Starter Kit