Routing Policies
About this task
Routing policies in webMethods API Gateway determine the direction of incoming requests to different backend resources or endpoints based on specified conditions. These policies allow you to control the flow of traffic within webMethods API Gateway, enabling you to implement various routing strategies, such as load balancing, versioning, A/B testing, and canary deployments.
Straight Through Routing policy is applied by default when an API is created in webMethods API Gateway. This default behavior is suitable for APIs that route incoming requests to a single backend resource or native endpoint.
Let’s look at a sample scenario, where you are importing https://petstore.swagger.io/v2/swagger.json URL to create the Petstore REST API, and Straight Through Routing policy is applied by default.
Before you begin
- The URL from where you want to import the API
- Manage APIs or Activate / Deactivate APIs functional privilege
To configure Straight Through Routing policy