Skip to main content

Dynamic Endpoint Policy

Dynamic Endpoint Policy​

Dynamic Endpoint Policy is a policy designed to be engaged in the request flow of any request that requires to be routed to the consent manage service or the actual backend endpoint based on the provided regex expression. It will perform the below tasks.

  • Routes the requests to the consent management service or the actual backend endpoint based on the provided regex expression.
note

This should be the last policy engaged into the flow as this will change the To header in the synapse layer.

Create an API Level Policy by following the Creating API Level Policy and add to all API resources which require this routing mechanism. Find the details to create the policy below.

General Details​

FieldDescription
NameDynamic Endpoint Policy
Version1 (can be any)
DescriptionPolicy to determine the backend of the request
Applicable FlowsRequest
Supported API TypesHTTP

Policy File​

Upload the dynamicEndpointPolicy.j2 policy file which resides inside the <APIM_HOME>/<OB_APIM_ACCELERATOR _HOME>/repository/resources/mediation-policies folder.

Policy Attributes​

Attribute NameDisplay NameDescriptionRequiredTypeExample Values
consentServiceRoutingRegexPatternConsent Service Routing Regex PatternThe regex pattern to route requests to the consent service based on the request URLtrueStringAccounts: .*\/account-access-consents.*
CoF: .*\/funds-confirmation-consents.*
Payments: .*\/payment-consents.*
consentServiceBasicAuthCredentialsConsent Service Basic Auth CredentialsBase64 encoded(admin-username:admin-password) basic auth credentials required to access the consent servicetrueStringaXNfYWRtaW5Ad3NvMi5jb206d3NvMjEyMw==
consentServiceBaseUrlConsent Service Base URLBase URL of the consent servicetrueStringhttps://localhost:9446
bankBackendBaseUrlBank Backend Base URLBase URL of the bank back endtrueStringAccounts: https://localhost:9443/api/fs/backend/services/accounts/accountservice
CoF: https://localhost:9443/api/fs/backend/services/fundsConfirmation/fundsconfirmationservice
Payments: https://localhost:9443/api/fs/backend/services/payments/paymentservice

Was this page helpful?