1 | initial version |
To use the API Manager custom policy to make an endpoint call and store the response in the Property Mediator, follow these steps:
<policies>
<inSequence>
<log level="full"/>
<send>
<endpoint>
<address uri="http://example.com/api"/>
</endpoint>
</send>
</inSequence>
<outSequence>
<property name="responsePayload" expression="$body"/>
<log level="full"/>
<send/>
</outSequence>
</policies>
<property name="responsePayload" expression="get-property('responsePayload')"/>