webMethods IS
The webMethods IS policy allows API Studio to process incoming requests before forwarding them to the native API. It can transform the message into the format that is specified or apply custom logic as needed.
For example, if a client sends an order record in a structure that differs from what the native API expects, this policy can convert the record to match the expected format. The policy does it by bridging any mismatch between client and backend requirements.
Example of a webMethods IS policy:
kind: WebMethodsISService
apiVersion: api.webmethods.io/beta
metadata:
name: webMethodsISService
namespace: sample
version: 1
spec:
enabled: true
condition: |
(${request.httpMethod} equals POST) or
(${request.headers.name} notEquals ${request.payload.jsonPath[$.customer.name]})
# other operators include Equals, Equals ignore case, Not equals, Not equals ignore case, Contains, Not Contains, Exists, Not Exists, IP Range, Greater Than, Lesser Than
services:
- name: sample
runAs: #developer, administrator,default, replicator
complyToISSpec: true
alias: 'alias'
Type | Description |
---|---|
kind |
WebMethodsISService . Defines the type of policy that is being
configured. |
apiVersion |
Denotes the version of the API in use. |
metadata |
Denotes the metadata or details of the asset type. It covers this metadata:
|
spec |
You can configure the following policy properties:
|